Commit 626c857e authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 340312 - Attachments are not encrypted when "automatic encryption" is selected

FIXED-IN: 14.12
BUG: 340312
parent 5c74af01
...@@ -1642,9 +1642,7 @@ void MessageComposer::ComposerViewBase::markAllAttachmentsForSigning(bool sign) ...@@ -1642,9 +1642,7 @@ void MessageComposer::ComposerViewBase::markAllAttachmentsForSigning(bool sign)
{ {
if (m_attachmentModel) { if (m_attachmentModel) {
foreach( MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments() ) { foreach( MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments() ) {
if( attachment->isSigned() ) { attachment->setSigned(sign);
attachment->setSigned(sign);
}
} }
} }
} }
...@@ -1653,9 +1651,7 @@ void MessageComposer::ComposerViewBase::markAllAttachmentsForEncryption(bool enc ...@@ -1653,9 +1651,7 @@ void MessageComposer::ComposerViewBase::markAllAttachmentsForEncryption(bool enc
{ {
if (m_attachmentModel) { if (m_attachmentModel) {
foreach( MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments() ) { foreach( MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments() ) {
if( attachment->isEncrypted() ) { attachment->setEncrypted(encrypt);
attachment->setEncrypted(encrypt);
}
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment