summaryrefslogtreecommitdiffstats
path: root/common/queryrunner.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-19 18:05:36 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-19 18:05:36 +0100
commit50d46631b6c27e0dfaf47b1a59365ce9b4b152ec (patch)
tree347c201496ed5efea7a360b986a80d3537f4962c /common/queryrunner.cpp
parent9f7e50ed1b788cf407c13bc35a2021e329123c4f (diff)
downloadsink-50d46631b6c27e0dfaf47b1a59365ce9b4b152ec.tar.gz
sink-50d46631b6c27e0dfaf47b1a59365ce9b4b152ec.zip
Avoid starting resources on non-live queries.
Diffstat (limited to 'common/queryrunner.cpp')
-rw-r--r--common/queryrunner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/queryrunner.cpp b/common/queryrunner.cpp
index 25570bc..718586f 100644
--- a/common/queryrunner.cpp
+++ b/common/queryrunner.cpp
@@ -65,7 +65,10 @@ QueryRunner<DomainType>::QueryRunner(const Akonadi2::Query &query, const Akonadi
65 mResultProvider->setFetcher([this, query](const typename DomainType::Ptr &parent) { 65 mResultProvider->setFetcher([this, query](const typename DomainType::Ptr &parent) {
66 Trace() << "Running fetcher"; 66 Trace() << "Running fetcher";
67 const qint64 newRevision = executeInitialQuery(query, parent, *mResultProvider); 67 const qint64 newRevision = executeInitialQuery(query, parent, *mResultProvider);
68 mResourceAccess->sendRevisionReplayedCommand(newRevision); 68 //Only send the revision replayed information if we're connected to the resource, there's no need to start the resource otherwise.
69 if (query.liveQuery) {
70 mResourceAccess->sendRevisionReplayedCommand(newRevision);
71 }
69 }); 72 });
70 73
71 74