diff options
Diffstat (limited to 'framework/qml/ConversationView.qml')
-rw-r--r-- | framework/qml/ConversationView.qml | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/framework/qml/ConversationView.qml b/framework/qml/ConversationView.qml index 85712a5a..d7d33c78 100644 --- a/framework/qml/ConversationView.qml +++ b/framework/qml/ConversationView.qml | |||
@@ -548,32 +548,12 @@ Rectangle { | |||
548 | rightMargin: Kube.Units.largeSpacing | 548 | rightMargin: Kube.Units.largeSpacing |
549 | } | 549 | } |
550 | 550 | ||
551 | Kube.Context { | ||
552 | id: mailcontext | ||
553 | property variant mail | ||
554 | property bool isDraft | ||
555 | mail: model.mail | ||
556 | isDraft: model.draft | ||
557 | } | ||
558 | |||
559 | Kube.Action { | ||
560 | id: replyAction | ||
561 | actionId: "org.kde.kube.actions.reply" | ||
562 | context: maillistcontext | ||
563 | } | ||
564 | |||
565 | Kube.Action { | ||
566 | id: editAction | ||
567 | actionId: "org.kde.kube.actions.edit" | ||
568 | context: maillistcontext | ||
569 | } | ||
570 | |||
571 | iconName: model.draft ? Kube.Icons.edit : Kube.Icons.replyToSender | 551 | iconName: model.draft ? Kube.Icons.edit : Kube.Icons.replyToSender |
572 | onClicked: { | 552 | onClicked: { |
573 | if (model.draft) { | 553 | if (model.draft) { |
574 | editAction.execute() | 554 | Kube.Fabric.postMessage(Kube.Messages.edit, {"mail": model.mail, "isDraft": model.draft}) |
575 | } else { | 555 | } else { |
576 | replyAction.execute() | 556 | Kube.Fabric.postMessage(Kube.Messages.reply, {"mail": model.mail, "isDraft": model.draft}) |
577 | } | 557 | } |
578 | } | 558 | } |
579 | } | 559 | } |