diff --git a/messagecomposer/composer/composerviewbase.cpp b/messagecomposer/composer/composerviewbase.cpp index 835d2040f21e84adee27d73d1a77fed67d284d22..55a6d57f250611f5d1924ccc59dc38e31f38ea39 100644 --- a/messagecomposer/composer/composerviewbase.cpp +++ b/messagecomposer/composer/composerviewbase.cpp @@ -1642,9 +1642,7 @@ void MessageComposer::ComposerViewBase::markAllAttachmentsForSigning(bool sign) { if (m_attachmentModel) { 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 { if (m_attachmentModel) { foreach( MessageCore::AttachmentPart::Ptr attachment, m_attachmentModel->attachments() ) { - if( attachment->isEncrypted() ) { - attachment->setEncrypted(encrypt); - } + attachment->setEncrypted(encrypt); } } }