Fix potential crash internally to Qt when removing tree widget items

This commit is contained in:
baldurk
2022-02-19 10:24:33 +00:00
parent a51b20369f
commit 08e7a55732
@@ -556,6 +556,7 @@ void RDTreeWidgetItem::clear()
for(RDTreeWidgetItem *c : children)
{
c->m_parent = NULL;
c->m_widget = NULL;
delete c;
}