Notify control when removing items without parent
Fixes https://gitlab.com/kicad/code/kicad/issues/7441
This commit is contained in:
parent
ccbc0f73cc
commit
c1aa50e522
|
@ -505,10 +505,10 @@ public:
|
||||||
i->SetParent( nullptr );
|
i->SetParent( nullptr );
|
||||||
|
|
||||||
m_items.erase( *aRow );
|
m_items.erase( *aRow );
|
||||||
|
ItemDeleted( wxDataViewItem( parent ), wxDataViewItem( &*i ) );
|
||||||
|
|
||||||
if( parent )
|
if( parent )
|
||||||
{
|
{
|
||||||
ItemDeleted( wxDataViewItem( parent ), wxDataViewItem( &*i ) );
|
|
||||||
ItemChanged( wxDataViewItem( parent ) );
|
ItemChanged( wxDataViewItem( parent ) );
|
||||||
|
|
||||||
// for grouping type 2,3 a group item might disappear if it becomes empty.
|
// for grouping type 2,3 a group item might disappear if it becomes empty.
|
||||||
|
|
Loading…
Reference in New Issue