From 834fcdd949b030c0b85d7cb08fee080a5e1fd319 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 2 Mar 2009 21:14:01 +0000 Subject: [PATCH] ProcessPendingEvents() is now in wxApp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/evtloop.mm | 3 ++- src/msw/evtloop.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cocoa/evtloop.mm b/src/cocoa/evtloop.mm index 7981fd26ee..de848b00e3 100644 --- a/src/cocoa/evtloop.mm +++ b/src/cocoa/evtloop.mm @@ -163,7 +163,8 @@ bool wxGUIEventLoop::YieldFor(long eventsToProcess) 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 diff --git a/src/msw/evtloop.cpp b/src/msw/evtloop.cpp index d452e18d3a..81276cfaee 100644 --- a/src/msw/evtloop.cpp +++ b/src/msw/evtloop.cpp @@ -503,7 +503,8 @@ bool wxGUIEventLoop::YieldFor(long eventsToProcess) } // if there are pending events, we must process them. - ProcessPendingEvents(); + if (wxTheApp) + wxTheApp->ProcessPendingEvents(); // put back unprocessed events in the queue DWORD id = GetCurrentThreadId(); -- 2.50.0