From b8692c0afad1f736519cb384e70bbb0c4646065a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 8 Dec 2009 14:07:59 +0000 Subject: [PATCH] Speed up adding pages during freezing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibook.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 1d58fc29b1..f73fd1048d 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -2833,6 +2833,9 @@ public: if (!m_tabs) return; + if (m_tabs->IsFrozen() || m_tabs->GetParent()->IsFrozen()) + return; + if (m_tabs->GetFlags() & wxAUI_NB_BOTTOM) { m_tab_rect = wxRect (m_rect.x, m_rect.y + m_rect.height - m_tab_ctrl_height, m_rect.width, m_tab_ctrl_height); @@ -3273,7 +3276,7 @@ bool wxAuiNotebook::DeletePage(size_t page_idx) // hide the window in advance, as this will // prevent flicker - if ( !IsBeingDeleted() ) + if ( !IsBeingDeleted() ) ShowWnd(wnd, false); if (!RemovePage(page_idx)) @@ -3797,7 +3800,7 @@ void wxAuiNotebook::OnTabClicked(wxCommandEvent& command_evt) // to the child tab in the SetSelection call below // (the child focus event will also let wxAuiManager, if any, // know that the notebook control has been activated) - + wxWindow* parent = GetParent(); if (parent) {