diff options
Diffstat (limited to 'framework/domain/composercontroller.cpp')
-rw-r--r-- | framework/domain/composercontroller.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/domain/composercontroller.cpp b/framework/domain/composercontroller.cpp index 18ebc4c4..d2b3bc9c 100644 --- a/framework/domain/composercontroller.cpp +++ b/framework/domain/composercontroller.cpp | |||
@@ -183,6 +183,10 @@ Kube::Action* ComposerController::saveAsDraftAction() | |||
183 | { | 183 | { |
184 | auto action = new Kube::Action("org.kde.kube.actions.save-as-draft", *mContext); | 184 | auto action = new Kube::Action("org.kde.kube.actions.save-as-draft", *mContext); |
185 | action->addPreHandler(messageHandler()); | 185 | action->addPreHandler(messageHandler()); |
186 | action->addPostHandler(new Kube::ActionHandlerHelper( | ||
187 | [this](Kube::Context *context) { | ||
188 | emit done(); | ||
189 | })); | ||
186 | return action; | 190 | return action; |
187 | } | 191 | } |
188 | 192 | ||
@@ -193,6 +197,10 @@ Kube::Action* ComposerController::sendAction() | |||
193 | // action->addPreHandler(identityHandler()); | 197 | // action->addPreHandler(identityHandler()); |
194 | action->addPreHandler(messageHandler()); | 198 | action->addPreHandler(messageHandler()); |
195 | // action->addPreHandler(encryptionHandler()); | 199 | // action->addPreHandler(encryptionHandler()); |
200 | action->addPostHandler(new Kube::ActionHandlerHelper( | ||
201 | [this](Kube::Context *context) { | ||
202 | emit done(); | ||
203 | })); | ||
196 | return action; | 204 | return action; |
197 | } | 205 | } |
198 | 206 | ||