diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-06 19:13:59 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-06 19:13:59 +0100 |
commit | 4de82d8eafdf0ed9fe48f6bc6627c14332f0fc3c (patch) | |
tree | 94286d1f64df4bdd0959337fcb4a605516f55077 /common/store.cpp | |
parent | cd206b3a720807301f1b1707698c4a405da89217 (diff) | |
download | sink-4de82d8eafdf0ed9fe48f6bc6627c14332f0fc3c.tar.gz sink-4de82d8eafdf0ed9fe48f6bc6627c14332f0fc3c.zip |
Fix copy constructor of SyncScope
We used to loose the resource list and thus erroneously sync all
available resources.
Diffstat (limited to 'common/store.cpp')
-rw-r--r-- | common/store.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/store.cpp b/common/store.cpp index 477b852..971cc7f 100644 --- a/common/store.cpp +++ b/common/store.cpp | |||
@@ -289,7 +289,7 @@ static KAsync::Job<void> synchronize(const QByteArray &resource, const Sink::Syn | |||
289 | 289 | ||
290 | KAsync::Job<void> Store::synchronize(const Sink::Query &query) | 290 | KAsync::Job<void> Store::synchronize(const Sink::Query &query) |
291 | { | 291 | { |
292 | return synchronize(Sink::SyncScope{static_cast<Sink::QueryBase>(query)}); | 292 | return synchronize(Sink::SyncScope{query}); |
293 | } | 293 | } |
294 | 294 | ||
295 | KAsync::Job<void> Store::synchronize(const Sink::SyncScope &scope) | 295 | KAsync::Job<void> Store::synchronize(const Sink::SyncScope &scope) |