diff options
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index 1c7ed0f..d4a0e1c 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include "common/resource.h" | 24 | #include "common/resource.h" |
25 | #include "common/storage.h" | 25 | #include "common/storage.h" |
26 | #include "common/resourcecontrol.h" | ||
26 | #include "common/domain/event.h" | 27 | #include "common/domain/event.h" |
27 | #include "common/domain/folder.h" | 28 | #include "common/domain/folder.h" |
28 | #include "common/resourceconfig.h" | 29 | #include "common/resourceconfig.h" |
@@ -45,7 +46,9 @@ bool sync(const QStringList &args, State &state) | |||
45 | } | 46 | } |
46 | 47 | ||
47 | QTimer::singleShot(0, [query, state]() { | 48 | QTimer::singleShot(0, [query, state]() { |
48 | Sink::Store::synchronize(query).syncThen<void>([state](const KAsync::Error &error) { | 49 | Sink::Store::synchronize(query) |
50 | .then(Sink::ResourceControl::flushReplayQueue(query.getResourceFilter().ids)) | ||
51 | .syncThen<void>([state](const KAsync::Error &error) { | ||
49 | if (error) { | 52 | if (error) { |
50 | state.printLine("Synchronization failed!"); | 53 | state.printLine("Synchronization failed!"); |
51 | } else { | 54 | } else { |