X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/badcaaaf32ed512439b1ca032c8e1b24017184f3..7660b85c3147dc4d5a57e28fb738f1d45b7add4d:/src/aui/auibook.cpp diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index c9c6e2a7eb..a3b7b64be8 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -2599,7 +2599,8 @@ bool wxAuiNotebook::InsertPage(size_t page_idx, // 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())