From e4fba677a9755a5aee1a0ea1513b6f737429d832 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 4 May 2016 16:49:31 +0200 Subject: Unbreak action execution from qml QML can't do with custom return types. (we'd have to wrap it in a QVariant or use a property). --- framework/domain/actions/tests/sinkactiontest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/domain/actions/tests') diff --git a/framework/domain/actions/tests/sinkactiontest.cpp b/framework/domain/actions/tests/sinkactiontest.cpp index 3e4567fd..3ba9ffb9 100644 --- a/framework/domain/actions/tests/sinkactiontest.cpp +++ b/framework/domain/actions/tests/sinkactiontest.cpp @@ -25,7 +25,7 @@ private slots: void testSaveAsDraftFail() { Kube::Context context; - auto future = Kube::Action("org.kde.kube.actions.save-as-draft", context).execute(); + auto future = Kube::Action("org.kde.kube.actions.save-as-draft", context).executeWithResult(); QTRY_VERIFY(future.isDone()); //because of empty context @@ -45,7 +45,7 @@ private slots: Kube::Context context; context.setProperty("message", QVariant::fromValue(message)); context.setProperty("accountId", QVariant::fromValue(account.identifier)); - auto future = Kube::Action("org.kde.kube.actions.save-as-draft", context).execute(); + auto future = Kube::Action("org.kde.kube.actions.save-as-draft", context).executeWithResult(); QTRY_VERIFY(future.isDone()); QVERIFY(!future.error()); -- cgit v1.2.3