In wxPropertyGridPageState::DoDelete(), clear grid's m_propHover if it matches the property being deleted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1780,6 +1780,12 @@ void wxPropertyGridPageState::DoDelete( wxPGProperty* item, bool doDelete )
|
|||||||
(parent->IsCategory() || parent->IsRoot()) )
|
(parent->IsCategory() || parent->IsRoot()) )
|
||||||
m_dictName.erase(item->GetBaseName());
|
m_dictName.erase(item->GetBaseName());
|
||||||
|
|
||||||
|
wxPropertyGrid* pg = GetGrid();
|
||||||
|
|
||||||
|
// We need to clear parent grid's m_propHover, if it matches item
|
||||||
|
if ( pg && pg->m_propHover == item )
|
||||||
|
pg->m_propHover = NULL;
|
||||||
|
|
||||||
// We can actually delete it now
|
// We can actually delete it now
|
||||||
if ( doDelete )
|
if ( doDelete )
|
||||||
delete item;
|
delete item;
|
||||||
|
Reference in New Issue
Block a user