// select is false, it must become the "current page"
// (though no select events will be fired)
if (!select && m_tabs.GetPageCount() == 1)
- m_curpage = GetPageIndex(page);
+ select = true;
+ //m_curpage = GetPageIndex(page);
wxAuiTabCtrl* active_tabctrl = GetActiveTabCtrl();
if (page_idx >= active_tabctrl->GetPageCount())