Home GnuPG
Diffusion GpgOL a80c7502c45b

Don't carry around inline crypt state twice

Description

Don't carry around inline crypt state twice

* src/cryptcontroller.cpp, src/cryptcontroller.h: Replace
m_inline member variable with access to Mail::should_inline_crypt.
* src/mail.h: Add set_should_inline_crypt.
* src/mail.cpp: Update callers.

Having two inline states adds complexity and might lead to
wrong results. E.g. Mail::should_inline_crypt would not change
when the cryptcontroller detected attachments.

Details

Provenance
aheineckeAuthored on Mar 26 2018, 8:47 AM
Parents
rO88e76e1675dc: Spellcheck german localisation
Branches
Unknown
Tags
Unknown
Tasks
T3863: GpgOL: 3.1.0 Beta might send unencrypted mail even if crypto was selcted