X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cca410b336cd5628a944ede9e9944fdbb04552d4..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/gtk/dialog.cpp diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index dc66c23778..fe9a0036c2 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -20,12 +20,8 @@ #include -//----------------------------------------------------------------------------- -// global data -//----------------------------------------------------------------------------- - -// Don't allow window closing if there are open dialogs -int g_openDialogs; +// this is defined in src/gtk/toplevel.cpp +extern int wxOpenModalDialogsCount; //----------------------------------------------------------------------------- // wxDialog @@ -120,7 +116,7 @@ int wxDialog::ShowModal() m_modalShowing = true; - g_openDialogs++; + wxOpenModalDialogsCount++; // NOTE: gtk_window_set_modal internally calls gtk_grab_add() ! gtk_window_set_modal(GTK_WINDOW(m_widget), TRUE); @@ -129,7 +125,7 @@ int wxDialog::ShowModal() gtk_window_set_modal(GTK_WINDOW(m_widget), FALSE); - g_openDialogs--; + wxOpenModalDialogsCount--; return GetReturnCode(); }