From b6294ec95f4f459bc3cd5e1c9671d6329cac2b41 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 20 Oct 2015 16:44:41 +0200 Subject: Cleanup --- common/facade.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/facade.h b/common/facade.h index a0971a1..0ddc205 100644 --- a/common/facade.h +++ b/common/facade.h @@ -275,6 +275,9 @@ public: runner->run().then([&future]() { future.setFinished(); }).exec(); + }, + [](int error, const QString &errorString) { + Warning() << "Error during sync " << error << errorString; }); } @@ -285,11 +288,7 @@ protected: //TODO Only sync what was requested //TODO timeout if (sync || processAll) { - return KAsync::start([=](KAsync::Future &future) { - mResourceAccess->synchronizeResource(sync, processAll).then([&future]() { - future.setFinished(); - }).exec(); - }); + return mResourceAccess->synchronizeResource(sync, processAll); } return KAsync::null(); } -- cgit v1.2.3