Fix setting categorized/alphabetic mode for inserted wxPropertyGridPage

State of the newly added wxPropertyGridPage should have the same
categorized/alphabetic mode like associated wxPropertyGrid.
This commit is contained in:
Artur Wieczorek
2021-11-07 21:55:03 +01:00
parent 20208cc81f
commit 198bd1fe1f

View File

@@ -995,6 +995,10 @@ wxPropertyGridPage* wxPropertyGridManager::InsertPage( int index,
{
state->m_pPropGrid = m_pPropGrid;
state->InitNonCatMode();
if ( !isPageInserted )
{
state->EnableCategories(m_pPropGrid->HasFlag(wxPG_HIDE_CATEGORIES) ? false : true);
}
}
if ( !label.empty() )