X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3e4a2a4146a4a28fedce563f42f1e3f38462d80..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/os2/dialog.cpp?ds=sidebyside diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp index eb635379c9..1ab046a28e 100644 --- a/src/os2/dialog.cpp +++ b/src/os2/dialog.cpp @@ -206,6 +206,15 @@ void wxDialog::DoShowModal() // ::WinProcessDlg((HWND)GetHwnd()); + // + // Before entering the modal loop, reset the "is in OnIdle()" flag (see + // comment in app.cpp) + // + extern bool gbInOnIdle; + bool bWasInOnIdle = gbInOnIdle; + + gbInOnIdle = FALSE; + // // Enter the modal loop // @@ -221,6 +230,7 @@ void wxDialog::DoShowModal() // a message came or no more idle processing to do wxTheApp->DoMessage(); } + gbInOnIdle = bWasInOnIdle; // // Snd restore focus