]> git.saurik.com Git - wxWidgets.git/commitdiff
ProcessPendingEvents() is now in wxApp
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 2 Mar 2009 21:14:01 +0000 (21:14 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 2 Mar 2009 21:14:01 +0000 (21:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/evtloop.mm
src/msw/evtloop.cpp

index 7981fd26eee3546be769fcb4a6b2532f75f4b436..de848b00e3954cf57f2cb38ca6c6f1fa38130256 100644 (file)
@@ -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
index d452e18d3a91e65fb13c5a675b12d69239da41dc..81276cfaeed1ec0de7207051f95016afbe998faa 100644 (file)
@@ -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();