Moved property unattachment code from wxPropertyGridInterface::RemoveProperty() to wxPropertyGridPageState::DoDelete() - fixes deferred removal issue
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1979,6 +1979,10 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item, bool doDelete )
|
||||
if ( pg && pg->m_propHover == item )
|
||||
pg->m_propHover = NULL;
|
||||
|
||||
// Mark the property as 'unattached'
|
||||
item->m_parentState = NULL;
|
||||
item->m_parent = NULL;
|
||||
|
||||
// We can actually delete it now
|
||||
if ( doDelete )
|
||||
delete item;
|
||||
|
Reference in New Issue
Block a user