X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/91af089567c5e13a408f1c529f6830d12cdc6c4e..2296fe5018d42d4e0bf9df07c37d31f60d972b32:/src/gtk/dialog.cpp diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index 115965adc4..17df0e50d0 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -18,6 +18,7 @@ #include "wx/frame.h" #include "wx/app.h" #include "wx/cursor.h" +#include "wx/evtloop.h" #include <gdk/gdk.h> #include <gtk/gtk.h> @@ -212,7 +213,9 @@ int wxDialog::ShowModal() g_openDialogs++; gtk_grab_add( m_widget ); - gtk_main(); + + wxEventLoop().Run(); + gtk_grab_remove( m_widget ); g_openDialogs--;