X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31fdb8d993d3d4373199b1a676b271c4fd4c12e8..8ca1a013e4e699724040ff1f514dab3b4a11d3c9:/src/gtk/dialog.cpp diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index 7688d3329b..63c13c0c98 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -30,7 +30,8 @@ // global data //----------------------------------------------------------------------------- -extern int g_openDialogs; +// Don't allow window closing if there are open dialogs +int g_openDialogs; //----------------------------------------------------------------------------- // wxDialog @@ -134,7 +135,7 @@ int wxDialog::ShowModal() // NOTE: gtk_window_set_modal internally calls gtk_grab_add() ! gtk_window_set_modal(GTK_WINDOW(m_widget), TRUE); - wxEventLoop().Run(); + wxGUIEventLoop().Run(); gtk_window_set_modal(GTK_WINDOW(m_widget), FALSE);