summaryrefslogtreecommitdiffstats
path: root/views/composer/qml/View.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-01 15:31:49 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-01 15:33:04 +0100
commit787c2aaaa5ee256a9467aef73f61887b93894ec9 (patch)
treeda8e7b8c086859963e8ebd70b35f1c5f825b4a8d /views/composer/qml/View.qml
parent3b0008b8075f51f18bb50bd8a01e6b03b7bc540a (diff)
downloadkube-787c2aaaa5ee256a9467aef73f61887b93894ec9.tar.gz
kube-787c2aaaa5ee256a9467aef73f61887b93894ec9.zip
Fixed the foundAllKeys feature in the composer
setProperty doesn't work anymore for some reason, so we use a regular Q_PROPERTY. We have to explicitly reference the composerController variable, otherwise cc/bcc refernces don't work.
Diffstat (limited to 'views/composer/qml/View.qml')
-rw-r--r--views/composer/qml/View.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/composer/qml/View.qml b/views/composer/qml/View.qml
index 1ea67513..d444ea47 100644
--- a/views/composer/qml/View.qml
+++ b/views/composer/qml/View.qml
@@ -42,7 +42,7 @@ Kube.View {
42 encrypt: encryptCheckbox.checked 42 encrypt: encryptCheckbox.checked
43 onDone: Kube.Fabric.postMessage(Kube.Messages.componentDone, {}) 43 onDone: Kube.Fabric.postMessage(Kube.Messages.componentDone, {})
44 44
45 property bool foundAllKeys: to.foundAllKeys && cc.foundAllKeys && bcc.foundAllKeys 45 property bool foundAllKeys: composerController.to.foundAllKeys && composerController.cc.foundAllKeys && composerController.bcc.foundAllKeys
46 46
47 sendAction.enabled: composerController.accountId && composerController.subject && (!composerController.encrypt || composerController.foundAllKeys) && (!composerController.sign && !composerController.encrypt || composerController.foundPersonalKeys) && !composerController.to.empty 47 sendAction.enabled: composerController.accountId && composerController.subject && (!composerController.encrypt || composerController.foundAllKeys) && (!composerController.sign && !composerController.encrypt || composerController.foundPersonalKeys) && !composerController.to.empty
48 saveAsDraftAction.enabled: composerController.accountId 48 saveAsDraftAction.enabled: composerController.accountId