From aaf114296e50bfa93b831491738cd0a780085c3d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 11 May 2016 11:12:12 +0200 Subject: Let the controller retrieve what it requires, remember the id of the draft to modfiy. --- components/mail/contents/ui/main.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'components/mail') 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 { } function handler(context) { - composerComponent.createObject(app, {"originalMessage": context.mail}) + var component = composerComponent.createObject(app) + component.loadMessage(context.mail, false) } } @@ -195,7 +196,8 @@ ApplicationWindow { } function handler(context) { - composerComponent.createObject(app, {"draftMessage": context.mail}) + var component= composerComponent.createObject(app, {"draftMessage": context.mail}) + component.loadMessage(context.mail, true) } } -- cgit v1.2.3