From e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 3 May 2016 20:24:09 +0200 Subject: 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. --- framework/actions/action.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/actions/action.cpp') 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 return ActionBroker::instance().isActionReady(mActionId, mContext); } -void Action::execute() +ActionResult Action::execute() { - ActionBroker::instance().executeAction(mActionId, mContext); + return ActionBroker::instance().executeAction(mActionId, mContext); } -- cgit v1.2.3