better child focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
25c702609d
commit
d7ad415c50
@ -4310,7 +4310,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();
|
||||
|
Loading…
Reference in New Issue
Block a user