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,22 +1642,18 @@ void MessageComposer::ComposerViewBase::markAllAttachmentsForSigning(bool sign)
{
if (m_attachmentModel) {
foreach( MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments() ) {
if( attachment->isSigned() ) {
attachment->setSigned(sign);
}
}
}
}
void MessageComposer::ComposerViewBase::markAllAttachmentsForEncryption(bool encrypt)
{
if (m_attachmentModel) {
foreach( MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments() ) {
if( attachment->isEncrypted() ) {
attachment->setEncrypted(encrypt);
}
}
}
}
bool MessageComposer::ComposerViewBase::determineWhetherToSign( bool doSignCompletely, Kleo::KeyResolver* keyResolver, bool signSomething, bool & result, bool &canceled )
......
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