diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-03 20:24:09 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-03 20:24:26 +0200 |
commit | e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91 (patch) | |
tree | ef606d36ee693eff087292a1950fe122a7376f19 /framework/actions/action.cpp | |
parent | 21f7851f044cd8b6e38c821ce12d7e1b291cae27 (diff) | |
download | kube-e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91.tar.gz kube-e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91.zip |
A save-as-draft action & action results
This patch introduces tracking of actions, so they can be tested.
It also provides a save-as-draft action, that looks for the draft
folder, and stores the mail accordingly.
Diffstat (limited to 'framework/actions/action.cpp')
-rw-r--r-- | framework/actions/action.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/actions/action.cpp b/framework/actions/action.cpp index e6ba2daf..28dd5e2a 100644 --- a/framework/actions/action.cpp +++ b/framework/actions/action.cpp | |||
@@ -85,8 +85,8 @@ bool Action::ready() const | |||
85 | return ActionBroker::instance().isActionReady(mActionId, mContext); | 85 | return ActionBroker::instance().isActionReady(mActionId, mContext); |
86 | } | 86 | } |
87 | 87 | ||
88 | void Action::execute() | 88 | ActionResult Action::execute() |
89 | { | 89 | { |
90 | ActionBroker::instance().executeAction(mActionId, mContext); | 90 | return ActionBroker::instance().executeAction(mActionId, mContext); |
91 | } | 91 | } |
92 | 92 | ||