diff options
Diffstat (limited to 'framework/actions')
-rw-r--r-- | framework/actions/actionhandler.cpp | 2 | ||||
-rw-r--r-- | framework/actions/actionhandler.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/actions/actionhandler.cpp b/framework/actions/actionhandler.cpp index eb7b3224..99fdf66a 100644 --- a/framework/actions/actionhandler.cpp +++ b/framework/actions/actionhandler.cpp | |||
@@ -138,7 +138,7 @@ ActionResult ActionHandlerHelper::execute(Context *context) | |||
138 | handlerFunction(context); | 138 | handlerFunction(context); |
139 | result.setDone(); | 139 | result.setDone(); |
140 | } else { | 140 | } else { |
141 | jobHandlerFunction(context).syncThen<void>([=](const KAsync::Error &error) { | 141 | jobHandlerFunction(context).then([=](const KAsync::Error &error) { |
142 | auto modifyableResult = result; | 142 | auto modifyableResult = result; |
143 | if (error) { | 143 | if (error) { |
144 | qWarning() << "Job failed: " << error.errorCode << error.errorMessage; | 144 | qWarning() << "Job failed: " << error.errorCode << error.errorMessage; |
diff --git a/framework/actions/actionhandler.h b/framework/actions/actionhandler.h index 5ccf0ac7..c0e1b318 100644 --- a/framework/actions/actionhandler.h +++ b/framework/actions/actionhandler.h | |||
@@ -73,7 +73,7 @@ public: | |||
73 | ActionResult result; | 73 | ActionResult result; |
74 | auto wrapper = ContextType{*c}; | 74 | auto wrapper = ContextType{*c}; |
75 | execute(wrapper) | 75 | execute(wrapper) |
76 | .template syncThen<void>([=](const KAsync::Error &error) { | 76 | .template then([=](const KAsync::Error &error) { |
77 | auto modifyableResult = result; | 77 | auto modifyableResult = result; |
78 | if (error) { | 78 | if (error) { |
79 | qWarning() << "Job failed: " << error.errorCode << error.errorMessage; | 79 | qWarning() << "Job failed: " << error.errorCode << error.errorMessage; |