Commit 8d20c95f authored by Sandro Knauß's avatar Sandro Knauß
Browse files

KMComposerWin: Only offer encryption, if identity has an encryption key.

parent 0d5518ff
Pipeline #54276 passed with stage
in 17 minutes and 47 seconds
......@@ -3597,6 +3597,12 @@ void KMComposerWin::slotRecipientEditorFocusChanged()
return;
}
// Identity has no encryption key so no encryption is possible.
if (identity().pgpEncryptionKey().isEmpty()) {
setEncryption(false, false);
return;
}
// Focus changed, which basically means that user "committed" a new recipient.
// If we have at least one recipient that does not have a key, disable encryption
// (unless user enabled it manually), because we want to encrypt by default,
......
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