GTK-require two-step in dataview

The before reset needs to be called in GTK prior to reseting the tree
otherwise, we will dereference items that may be cleared.

Fixes https://gitlab.com/kicad/code/kicad/issues/6672
This commit is contained in:
Seth Hillbrand 2020-12-08 16:41:05 -08:00
parent 431c8dba3c
commit fbc70511c7
1 changed files with 2 additions and 1 deletions

View File

@ -544,8 +544,9 @@ public:
void deleteAllItems()
{
BeforeReset();
m_items.clear();
Cleared();
AfterReset();
}