diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-04 16:49:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-04 16:49:31 +0200 |
commit | e4fba677a9755a5aee1a0ea1513b6f737429d832 (patch) | |
tree | 956856d3635249a6d7af98934f7f14885f264818 /framework/domain | |
parent | 8cfe1ed71dd342bfb625a94319f7b3d42709c8b0 (diff) | |
download | kube-e4fba677a9755a5aee1a0ea1513b6f737429d832.tar.gz kube-e4fba677a9755a5aee1a0ea1513b6f737429d832.zip |
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).
Diffstat (limited to 'framework/domain')
-rw-r--r-- | framework/domain/actions/tests/sinkactiontest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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: | |||
25 | void testSaveAsDraftFail() | 25 | void testSaveAsDraftFail() |
26 | { | 26 | { |
27 | Kube::Context context; | 27 | Kube::Context context; |
28 | auto future = Kube::Action("org.kde.kube.actions.save-as-draft", context).execute(); | 28 | auto future = Kube::Action("org.kde.kube.actions.save-as-draft", context).executeWithResult(); |
29 | 29 | ||
30 | QTRY_VERIFY(future.isDone()); | 30 | QTRY_VERIFY(future.isDone()); |
31 | //because of empty context | 31 | //because of empty context |
@@ -45,7 +45,7 @@ private slots: | |||
45 | Kube::Context context; | 45 | Kube::Context context; |
46 | context.setProperty("message", QVariant::fromValue(message)); | 46 | context.setProperty("message", QVariant::fromValue(message)); |
47 | context.setProperty("accountId", QVariant::fromValue(account.identifier)); | 47 | context.setProperty("accountId", QVariant::fromValue(account.identifier)); |
48 | auto future = Kube::Action("org.kde.kube.actions.save-as-draft", context).execute(); | 48 | auto future = Kube::Action("org.kde.kube.actions.save-as-draft", context).executeWithResult(); |
49 | 49 | ||
50 | QTRY_VERIFY(future.isDone()); | 50 | QTRY_VERIFY(future.isDone()); |
51 | QVERIFY(!future.error()); | 51 | QVERIFY(!future.error()); |