[git] GpgOL - branch, master, updated. gpgol-1.4.0-180-g72c2ebb
by Andre Heinecke
cvs at cvs.gnupg.org
Thu Nov 17 17:00:14 CET 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG extension for MS Outlook".
The branch, master has been updated
via 72c2ebb31d68d2c1c9999cb5180964f834152891 (commit)
from 93f6204e256b1a773c1912b33e95f214a1a962d2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 72c2ebb31d68d2c1c9999cb5180964f834152891
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Thu Nov 17 16:57:26 2016 +0100
Ignoore WM_SYSCOMMAND / SC_CLOSE
* src/windowmessages.cpp (gpgol_hook): Ignore WM_SYSCOMMAND
SC_CLOSE.
--
I have not found a way where SC_CLOSE is sent but WM_CLOSE
is not sent. This fixes double close crashes when both WM_SYCOMMAND
and SC_CLOSE are handled but the close did not complete the
unload of the message.
Maybe we should remove our mails from the internal map as soon
as we call close.
diff --git a/src/windowmessages.cpp b/src/windowmessages.cpp
index 0760cdf..64e4ef1 100644
--- a/src/windowmessages.cpp
+++ b/src/windowmessages.cpp
@@ -250,12 +250,15 @@ gpgol_hook(int code, WPARAM wParam, LPARAM lParam)
break;
}
case WM_SYSCOMMAND:
+ /*
+ This comes to often and when we are closed from the icon
+ we also get WM_CLOSE
if (cwp->wParam == SC_CLOSE)
{
log_debug ("%s:%s: SC_CLOSE syscommand. Closing all mails.",
SRCNAME, __func__);
Mail::close_all_mails();
- }
+ } */
break;
default:
break;
-----------------------------------------------------------------------
Summary of changes:
src/windowmessages.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
hooks/post-receive
--
GnuPG extension for MS Outlook
http://git.gnupg.org
More information about the Gnupg-commits
mailing list