]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/frame.cpp
Fixed blatant non-initialisation bug
[wxWidgets.git] / src / gtk1 / frame.cpp
index 90a7b955cd71bbe5d36fe6f38604a4302011aa04..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;
@@ -985,6 +985,13 @@ wxStatusBar* wxFrame::CreateStatusBar(int number,
     return wxFrameBase::CreateStatusBar( number, style, id, name );
 }
 
+void wxFrame::PositionStatusBar()
+{
+    if ( !m_frameStatusBar )
+        return;
+
+    m_sizeSet = FALSE;
+}
 #endif // wxUSE_STATUSBAR
 
 // ----------------------------------------------------------------------------