Notify control when removing items without parent

Fixes https://gitlab.com/kicad/code/kicad/issues/7441
This commit is contained in:
david-beinder 2021-02-22 10:39:14 +01:00 committed by Wayne Stambaugh
parent ccbc0f73cc
commit c1aa50e522
1 changed files with 1 additions and 1 deletions

View File

@ -505,10 +505,10 @@ public:
i->SetParent( nullptr );
m_items.erase( *aRow );
ItemDeleted( wxDataViewItem( parent ), wxDataViewItem( &*i ) );
if( parent )
{
ItemDeleted( wxDataViewItem( parent ), wxDataViewItem( &*i ) );
ItemChanged( wxDataViewItem( parent ) );
// for grouping type 2,3 a group item might disappear if it becomes empty.