// global data
//-----------------------------------------------------------------------------
-extern int g_openDialogs;
+// Don't allow window closing if there are open dialogs
+int g_openDialogs;
//-----------------------------------------------------------------------------
// wxDialog
// 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);