]> git.saurik.com Git - wxWidgets.git/commitdiff
Apply [ 1712381 ] CRASH: closing floating panel on GTK
authorRobert Roebling <robert@roebling.de>
Sat, 5 May 2007 19:43:02 +0000 (19:43 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 5 May 2007 19:43:02 +0000 (19:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/floatpane.cpp

index 952cbfd3451c5bbae942692a8375ec19106f92d7..c2c0147106706c5528dddc0a28e943a5b07ce439 100644 (file)
@@ -159,8 +159,10 @@ void wxAuiFloatingFrame::OnSize(wxSizeEvent& event)
 void wxAuiFloatingFrame::OnClose(wxCloseEvent& evt)
 {
     m_owner_mgr->OnFloatingPaneClosed(m_pane_window, evt);
-    if (!evt.GetVeto())
+    if (!evt.GetVeto()) {
+       m_mgr.DetachPane(m_pane_window);
         Destroy();
+    }
 }
 
 void wxAuiFloatingFrame::OnMoveEvent(wxMoveEvent& event)