]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/floatpane.cpp
changed AddPendingEvent() to take const wxEvent reference, it doesn't need to modify it
[wxWidgets.git] / 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)