more thread fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-01-17 22:42:06 +00:00
parent bf1852e121
commit 4a9968f92d

View File

@@ -798,7 +798,13 @@ bool wxApp::DoMessage()
{ {
s_hadGuiLock = FALSE; s_hadGuiLock = FALSE;
// leave out WM_COMMAND messages: too dangerous, sometimes
// the message will be processed twice
if ( !wxIsWaitingForThread() ||
s_currentMsg.message != WM_COMMAND )
{
s_aSavedMessages.Add(s_currentMsg); s_aSavedMessages.Add(s_currentMsg);
}
return TRUE; return TRUE;
} }