From: Robert Roebling Date: Sat, 5 May 2007 19:43:02 +0000 (+0000) Subject: Apply [ 1712381 ] CRASH: closing floating panel on GTK X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a23717e5069bd06c8134240e02889c424cd293f4 Apply [ 1712381 ] CRASH: closing floating panel on GTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index 952cbfd345..c2c0147106 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -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)