X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..bec76e18352b3b0a94b0b54c8d66159722651e8b:/src/gtk/evtloop.cpp diff --git a/src/gtk/evtloop.cpp b/src/gtk/evtloop.cpp index 9cfac6466a..a9843d9cda 100644 --- a/src/gtk/evtloop.cpp +++ b/src/gtk/evtloop.cpp @@ -112,7 +112,6 @@ bool wxGUIEventLoop::Dispatch() { wxCHECK_MSG( IsRunning(), false, _T("can't call Dispatch() if not running") ); - gtk_main_iteration(); - - return true; + // gtk_main_iteration() returns TRUE only if gtk_main_quit() was called + return !gtk_main_iteration(); }