diff options
-rw-r--r-- | components/package/contents/ui/FocusComposer.qml | 6 | ||||
-rw-r--r-- | framework/domain/composercontroller.cpp | 8 | ||||
-rw-r--r-- | framework/domain/composercontroller.h | 3 |
3 files changed, 14 insertions, 3 deletions
diff --git a/components/package/contents/ui/FocusComposer.qml b/components/package/contents/ui/FocusComposer.qml index aee20cd5..d3f0d050 100644 --- a/components/package/contents/ui/FocusComposer.qml +++ b/components/package/contents/ui/FocusComposer.qml | |||
@@ -42,9 +42,9 @@ Controls2.Popup { | |||
42 | property variant body | 42 | property variant body |
43 | } | 43 | } |
44 | 44 | ||
45 | /* onDone: { */ | 45 | onDone: { |
46 | /* root.close() */ | 46 | root.close() |
47 | /* } */ | 47 | } |
48 | } | 48 | } |
49 | 49 | ||
50 | //actions | 50 | //actions |
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 | ||
diff --git a/framework/domain/composercontroller.h b/framework/domain/composercontroller.h index 6fad0685..b7ff0757 100644 --- a/framework/domain/composercontroller.h +++ b/framework/domain/composercontroller.h | |||
@@ -69,6 +69,9 @@ public: | |||
69 | public slots: | 69 | public slots: |
70 | void clear(); | 70 | void clear(); |
71 | 71 | ||
72 | signals: | ||
73 | void done(); | ||
74 | |||
72 | private: | 75 | private: |
73 | Kube::ActionHandler *messageHandler(); | 76 | Kube::ActionHandler *messageHandler(); |
74 | void recordForAutocompletion(const QByteArray &addrSpec, const QByteArray &displayName); | 77 | void recordForAutocompletion(const QByteArray &addrSpec, const QByteArray &displayName); |