Decrypt again after a draft was closed
authorAndre Heinecke <aheinecke@gnupg.org>
Fri, 12 Apr 2019 09:13:00 +0000 (11:13 +0200)
committerAndre Heinecke <aheinecke@gnupg.org>
Fri, 12 Apr 2019 09:16:44 +0000 (11:16 +0200)
commitbcedeb4913157ca9432d1c3cd95da759387ea688
treef10fd3723cc3d9f9ead1cb85690012d505e48876
parentc0caa127d13688c4e2d4d3df836274e6387a9aa0
Decrypt again after a draft was closed

* src/mail.cpp (m_decrypt_again, isDecryptAgain, setDecryptAgain):
New state variable.
* src/mail.h: Update accordingly.
* src/mailitem-events.cpp (BeforeRead): Schedule
decrypt if a closed mail was before read again.
(Close): Mark closed drafts for potential decrypt again.
* src/windowmessage.cpp, src/windowmessages.h (DECRYPT): New.

--
This allows us to detach an inline editor draft, edit it,
close it and continue editing in the inline editor.
src/mail.cpp
src/mail.h
src/mailitem-events.cpp
src/windowmessages.cpp
src/windowmessages.h