]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/frame.cpp
removed extern from inline function declarations
[wxWidgets.git] / src / gtk / frame.cpp
index cf54c400dbe85b16d2ee619672f930d92f919baf..301a3b309da675ca8a07f0a69f6e1c6bc80cc00f 100644 (file)
@@ -139,7 +139,7 @@ static gint gtk_frame_delete_callback( GtkWidget *WXUNUSED(widget), GdkEvent *WX
     if (g_isIdle)
         wxapp_install_idle_handler();
 
-    if (g_openDialogs == 0)
+    if ((g_openDialogs == 0) && (win->IsEnabled()))
         win->Close();
 
     return TRUE;