diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 12:42:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-13 12:42:31 +0200 |
commit | c12a9a09da59b9e418316dba02e6215cb55e47ee (patch) | |
tree | 05498d9a42e399bcca787f40c1fc473fb09e680e /common/notifier.cpp | |
parent | 55fe06979ceebe67553135b43aa47e70d931304b (diff) | |
parent | ebdb89b8bb482bbb5ecd544c3d38bef35fc7d820 (diff) | |
download | sink-c12a9a09da59b9e418316dba02e6215cb55e47ee.tar.gz sink-c12a9a09da59b9e418316dba02e6215cb55e47ee.zip |
Merge commit 'ebdb89b8bb482bbb5ecd544c3d38bef35fc7d820'v0.4.0
Diffstat (limited to 'common/notifier.cpp')
-rw-r--r-- | common/notifier.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/notifier.cpp b/common/notifier.cpp index 1af65e9..1b7cbdb 100644 --- a/common/notifier.cpp +++ b/common/notifier.cpp | |||
@@ -49,6 +49,7 @@ public: | |||
49 | 49 | ||
50 | QList<QSharedPointer<ResourceAccess>> resourceAccess; | 50 | QList<QSharedPointer<ResourceAccess>> resourceAccess; |
51 | QList<std::function<void(const Notification &)>> handler; | 51 | QList<std::function<void(const Notification &)>> handler; |
52 | QSharedPointer<Sink::ResultEmitter<QSharedPointer<Sink::ApplicationDomain::SinkResource> > > mResourceEmitter; | ||
52 | QObject context; | 53 | QObject context; |
53 | }; | 54 | }; |
54 | 55 | ||
@@ -91,6 +92,9 @@ Notifier::Notifier(const Sink::Query &resourceQuery) : d(new Sink::Notifier::Pri | |||
91 | SinkTraceCtx(resourceCtx) << "Resource query complete"; | 92 | SinkTraceCtx(resourceCtx) << "Resource query complete"; |
92 | }); | 93 | }); |
93 | emitter->fetch({}); | 94 | emitter->fetch({}); |
95 | if (resourceQuery.liveQuery()) { | ||
96 | d->mResourceEmitter = emitter; | ||
97 | } | ||
94 | result.first.exec(); | 98 | result.first.exec(); |
95 | } | 99 | } |
96 | 100 | ||