From 9c75a6d6715942c1f17f4b0196f3c7a0f0049042 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 1 May 2015 23:51:59 +0200 Subject: Ensure the facade is open when listening to revision changes. --- common/facade.h | 3 +++ 1 file changed, 3 insertions(+) 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: //In case of a live query we keep the runner for as long alive as the result provider exists if (query.liveQuery) { resultProvider->setQueryRunner(runner); + //Ensure the connection is open, if it wasn't already opened + //TODO If we are not connected already, we have to check for the latest revision once connected, otherwise we could miss some updates + mResourceAccess->open(); QObject::connect(mResourceAccess.data(), &Akonadi2::ResourceAccess::revisionChanged, runner.data(), &QueryRunner::revisionChanged); } -- cgit v1.2.3