From 26816c21f60450e461a5b6ef4ef740f6070ce278 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 27 Jul 2016 02:26:47 +0200 Subject: Ported to the kasync revamp --- sinksh/syntax_modules/sink_sync.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sinksh/syntax_modules') 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) } QTimer::singleShot(0, [query, state]() { - Sink::Store::synchronize(query).then([state]() { + Sink::Store::synchronize(query).syncThen([state]() { state.printLine("Synchronization complete!"); state.commandFinished(); - }).exec(); + }).exec(); }); return true; -- cgit v1.2.3