git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49008
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// active panes are allowed by the owner)
if (GetFlags() & wxAUI_MGR_ALLOW_ACTIVE_PANE)
{
// 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();
{
SetActivePane(m_panes, event.GetWindow());
m_frame->Refresh();