git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59286
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
the main thread waits and then notify the main thread by posting
an event.
*/
- ProcessPendingEvents();
+ if (wxTheApp)
+ wxTheApp->ProcessPendingEvents();
#if wxUSE_LOG
// let the logs be flashed again
}
// if there are pending events, we must process them.
- ProcessPendingEvents();
+ if (wxTheApp)
+ wxTheApp->ProcessPendingEvents();
// put back unprocessed events in the queue
DWORD id = GetCurrentThreadId();