summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules/sink_sync.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-14 11:41:45 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-14 11:41:45 +0100
commit03154b7897e39c450a6b6958d557a46c0f7e5bdc (patch)
treefd42e121b19e4f55dc44d456f1573ea85c65746a /sinksh/syntax_modules/sink_sync.cpp
parent6f3f86f9617486e1d30f263189fedafa1fedd62e (diff)
downloadsink-03154b7897e39c450a6b6958d557a46c0f7e5bdc.tar.gz
sink-03154b7897e39c450a6b6958d557a46c0f7e5bdc.zip
This is not necessary
Diffstat (limited to 'sinksh/syntax_modules/sink_sync.cpp')
-rw-r--r--sinksh/syntax_modules/sink_sync.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp
index 250cd75..ed2912e 100644
--- a/sinksh/syntax_modules/sink_sync.cpp
+++ b/sinksh/syntax_modules/sink_sync.cpp
@@ -51,7 +51,6 @@ bool sync(const QStringList &args, State &state)
51 } 51 }
52 } 52 }
53 53
54 QTimer::singleShot(0, [query, state]() {
55 Sink::Store::synchronize(query) 54 Sink::Store::synchronize(query)
56 .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids)) 55 .then(Sink::ResourceControl::flushMessageQueue(query.getResourceFilter().ids))
57 .then([state](const KAsync::Error &error) { 56 .then([state](const KAsync::Error &error) {
@@ -62,7 +61,6 @@ bool sync(const QStringList &args, State &state)
62 } 61 }
63 state.commandFinished(); 62 state.commandFinished();
64 }).exec(); 63 }).exec();
65 });
66 64
67 return true; 65 return true;
68} 66}