X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..5e4e03e9f99ebce30c49da587ad97b4ed7d63595:/src/gtk/evtloop.cpp?ds=sidebyside 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(); }