diff options
Diffstat (limited to 'sinksh/syntax_modules/sink_sync.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index 250cd75..ef84734 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -24,8 +24,6 @@ | |||
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/resourcecontrol.h" |
27 | #include "common/domain/event.h" | ||
28 | #include "common/domain/folder.h" | ||
29 | #include "common/resourceconfig.h" | 27 | #include "common/resourceconfig.h" |
30 | #include "common/log.h" | 28 | #include "common/log.h" |
31 | #include "common/storage.h" | 29 | #include "common/storage.h" |
@@ -51,7 +49,6 @@ bool sync(const QStringList &args, State &state) | |||
51 | } | 49 | } |
52 | } | 50 | } |
53 | 51 | ||
54 | QTimer::singleShot(0, [query, state]() { | ||
55 | Sink::Store::synchronize(query) | 52 | Sink::Store::synchronize(query) |
56 | .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) | 53 | .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) |
57 | .then([state](const KAsync::Error &error) { | 54 | .then([state](const KAsync::Error &error) { |
@@ -62,7 +59,6 @@ bool sync(const QStringList &args, State &state) | |||
62 | } | 59 | } |
63 | state.commandFinished(); | 60 | state.commandFinished(); |
64 | }).exec(); | 61 | }).exec(); |
65 | }); | ||
66 | 62 | ||
67 | return true; | 63 | return true; |
68 | } | 64 | } |