diff options
author | Johannes Kulick <kulick@hildensia.de> | 2012-12-15 15:07:44 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-02-19 10:10:07 +0000 |
commit | 1f72f815f36cf740f996e0647fdfa85d689f55a3 (patch) | |
tree | 0cbf4faeae087cc3c887d504b7f4d61b5233fcb0 /alot | |
parent | 2fd83f8064fa974964f1ed304f366089c673f4a0 (diff) |
if all encryption keys are removed set flag to false
If all the encryption keys are deleted from the encryption list set the encrypt
flag in the enveleope to false
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/envelope.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index cc549953..45ede761 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -488,6 +488,8 @@ class EncryptCommand(Command): if e.code == gpgme.ERR_INV_VALUE: raise GPGProblem("Can not find key to remove.") raise GPGProblem(str(e)) + if not envelope.encrypt_keys: + envelope.encrypt = False ui.current_buffer.rebuild() return elif self.action == 'encrypt': |