diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-13 20:12:15 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-13 20:12:15 +0100 |
commit | 03f91093dcfd8c7adb3b1ddabbf006ca8e0586a1 (patch) | |
tree | 8f84eebd41d217aa7ec0618ca4ee126d2e38966c /common/resultprovider.h | |
parent | 1aa82ab9cfacca1ee9af9f9137caeede55f89230 (diff) | |
download | sink-03f91093dcfd8c7adb3b1ddabbf006ca8e0586a1.tar.gz sink-03f91093dcfd8c7adb3b1ddabbf006ca8e0586a1.zip |
Ensure we process the query also if no resource is available.
Diffstat (limited to 'common/resultprovider.h')
-rw-r--r-- | common/resultprovider.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/resultprovider.h b/common/resultprovider.h index d94ad44..08a7d53 100644 --- a/common/resultprovider.h +++ b/common/resultprovider.h | |||
@@ -362,8 +362,12 @@ public: | |||
362 | 362 | ||
363 | void fetch(const DomainType &parent) Q_DECL_OVERRIDE | 363 | void fetch(const DomainType &parent) Q_DECL_OVERRIDE |
364 | { | 364 | { |
365 | for (const auto &emitter : mEmitter) { | 365 | if (mEmitter.isEmpty()) { |
366 | emitter->fetch(parent); | 366 | this->initialResultSetComplete(parent); |
367 | } else { | ||
368 | for (const auto &emitter : mEmitter) { | ||
369 | emitter->fetch(parent); | ||
370 | } | ||
367 | } | 371 | } |
368 | } | 372 | } |
369 | 373 | ||