Ensure that wxApp::Yield is always processing pending event by creating a
temporary event loop if needed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -702,6 +702,7 @@ bool wxApp::Yield(bool onlyIfNeeded)
|
||||
|
||||
// we don't want to process WM_QUIT from here - it should be processed in
|
||||
// the main event loop in order to stop it
|
||||
wxEventLoopGuarantor dummyLoopIfNeeded;
|
||||
MSG msg;
|
||||
while ( PeekMessage(&msg, (HWND)0, 0, 0, PM_NOREMOVE) &&
|
||||
msg.message != WM_QUIT )
|
||||
|
||||
Reference in New Issue
Block a user