]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/evtloop.cpp
Make wxDataViewModel::Compare() const
[wxWidgets.git] / src / msw / evtloop.cpp
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();