Update AUI frame capture when it changes.

Set the updated label in wxAuiManager::Update() to ensure the labels stored
two places are always in sync.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-07-18 11:55:54 +00:00
parent 4b6d82c739
commit 6cd205f5a8

View File

@@ -2546,6 +2546,9 @@ void wxAuiManager::Update()
style |= wxRESIZE_BORDER;
p.frame->SetWindowStyleFlag(style);
if (p.frame->GetLabel() != p.caption)
p.frame->SetLabel(p.caption);
if (p.frame->IsShown() != p.IsShown())
p.frame->Show(p.IsShown());
}