diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-27 02:26:47 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-15 16:14:19 +0200 |
commit | 26816c21f60450e461a5b6ef4ef740f6070ce278 (patch) | |
tree | 55e8aee03e094abf702438e6cd26233047345e70 /sinksh/syntax_modules | |
parent | 9a9bb39f7641a818434cafa0dae0c8aa47124c0b (diff) | |
download | sink-26816c21f60450e461a5b6ef4ef740f6070ce278.tar.gz sink-26816c21f60450e461a5b6ef4ef740f6070ce278.zip |
Ported to the kasync revamp
Diffstat (limited to 'sinksh/syntax_modules')
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index 208b869..2ed4cf7 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -45,10 +45,10 @@ bool sync(const QStringList &args, State &state) | |||
45 | } | 45 | } |
46 | 46 | ||
47 | QTimer::singleShot(0, [query, state]() { | 47 | QTimer::singleShot(0, [query, state]() { |
48 | Sink::Store::synchronize(query).then<void>([state]() { | 48 | Sink::Store::synchronize(query).syncThen<void>([state]() { |
49 | state.printLine("Synchronization complete!"); | 49 | state.printLine("Synchronization complete!"); |
50 | state.commandFinished(); | 50 | state.commandFinished(); |
51 | }).exec(); | 51 | }).exec(); |
52 | }); | 52 | }); |
53 | 53 | ||
54 | return true; | 54 | return true; |