summaryrefslogtreecommitdiffstats
path: root/components/mail/contents/ui/main.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-11 11:12:12 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-11 11:12:12 +0200
commitaaf114296e50bfa93b831491738cd0a780085c3d (patch)
tree2ee864ac6bf39e2b856ffaf0137dd78fda40c7d8 /components/mail/contents/ui/main.qml
parentdf10583b42f49a58d27dd6dd322f22fd88ce1418 (diff)
downloadkube-aaf114296e50bfa93b831491738cd0a780085c3d.tar.gz
kube-aaf114296e50bfa93b831491738cd0a780085c3d.zip
Let the controller retrieve what it requires, remember the id of the
draft to modfiy.
Diffstat (limited to 'components/mail/contents/ui/main.qml')
-rw-r--r--components/mail/contents/ui/main.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/mail/contents/ui/main.qml b/components/mail/contents/ui/main.qml
index c2569cdc..8d7047ab 100644
--- a/components/mail/contents/ui/main.qml
+++ b/components/mail/contents/ui/main.qml
@@ -184,7 +184,8 @@ ApplicationWindow {
184 } 184 }
185 185
186 function handler(context) { 186 function handler(context) {
187 composerComponent.createObject(app, {"originalMessage": context.mail}) 187 var component = composerComponent.createObject(app)
188 component.loadMessage(context.mail, false)
188 } 189 }
189 } 190 }
190 191
@@ -195,7 +196,8 @@ ApplicationWindow {
195 } 196 }
196 197
197 function handler(context) { 198 function handler(context) {
198 composerComponent.createObject(app, {"draftMessage": context.mail}) 199 var component= composerComponent.createObject(app, {"draftMessage": context.mail})
200 component.loadMessage(context.mail, true)
199 } 201 }
200 } 202 }
201 203