summaryrefslogtreecommitdiffstats
path: root/common/facade.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/facade.h')
-rw-r--r--common/facade.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/facade.h b/common/facade.h
index 541d1ce..8c6578f 100644
--- a/common/facade.h
+++ b/common/facade.h
@@ -168,6 +168,9 @@ public:
168 //In case of a live query we keep the runner for as long alive as the result provider exists 168 //In case of a live query we keep the runner for as long alive as the result provider exists
169 if (query.liveQuery) { 169 if (query.liveQuery) {
170 resultProvider->setQueryRunner(runner); 170 resultProvider->setQueryRunner(runner);
171 //Ensure the connection is open, if it wasn't already opened
172 //TODO If we are not connected already, we have to check for the latest revision once connected, otherwise we could miss some updates
173 mResourceAccess->open();
171 QObject::connect(mResourceAccess.data(), &Akonadi2::ResourceAccess::revisionChanged, runner.data(), &QueryRunner::revisionChanged); 174 QObject::connect(mResourceAccess.data(), &Akonadi2::ResourceAccess::revisionChanged, runner.data(), &QueryRunner::revisionChanged);
172 } 175 }
173 176