Avoid double deletion of notebook page windows, don't call DestroyChildren in

~wxAuiMDIClientWindow.  Also skip the hide page optimization when destroying 
the notebook. 

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-09-24 18:18:48 +00:00
parent 1d01eaa3da
commit 9aeee9e8fd
2 changed files with 2 additions and 2 deletions

View File

@@ -3259,7 +3259,8 @@ bool wxAuiNotebook::DeletePage(size_t page_idx)
// hide the window in advance, as this will
// prevent flicker
ShowWnd(wnd, false);
if ( !IsBeingDeleted() )
ShowWnd(wnd, false);
if (!RemovePage(page_idx))
return false;

View File

@@ -716,7 +716,6 @@ wxAuiMDIClientWindow::wxAuiMDIClientWindow(wxAuiMDIParentFrame* parent, long sty
wxAuiMDIClientWindow::~wxAuiMDIClientWindow()
{
DestroyChildren();
}
bool wxAuiMDIClientWindow::CreateClient(wxAuiMDIParentFrame* parent, long style)