better child focus

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams
2007-10-01 16:02:22 +00:00
parent f9d8aad8f4
commit 85aabfa200

View File

@@ -4319,7 +4319,8 @@ void wxAuiManager::OnChildFocus(wxChildFocusEvent& event)
// active panes are allowed by the owner)
if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
{
if (GetPane(event.GetWindow()).IsOk())
wxAuiPaneInfo& pane = GetPane(event.GetWindow());
if (pane.IsOk() && (pane.state & wxAuiPaneInfo::optionActive) == 0)
{
SetActivePane(m_panes, event.GetWindow());
m_frame->Refresh();