From b1a2e2de201985a00980bead5272977cda4ef637 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 13 Dec 2016 14:52:27 +0100 Subject: Preactionhandler --- framework/actions/actionresult.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'framework/actions/actionresult.h') diff --git a/framework/actions/actionresult.h b/framework/actions/actionresult.h index e4d3efeb..dcf1a9ec 100644 --- a/framework/actions/actionresult.h +++ b/framework/actions/actionresult.h @@ -43,6 +43,18 @@ public: } virtual ~ActionResult() {} + ActionResult &operator+=(const ActionResult &rhs) + { + if (!error() && rhs.error()) { + setError(rhs.error()); + } + if (isDone() && rhs.isDone()) { + mData->mDone = false; + } + mData = rhs.mData; + return *this; + } + void setDone() { mData->mDone = true; } -- cgit v1.2.3