mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
When removing the root node, don't retain the pointer to it...
This commit is contained in:
parent
5578b791f3
commit
d6251c2a1a
1 changed files with 3 additions and 0 deletions
|
@ -176,6 +176,9 @@ void ExpressionEditor::onDeleteSelection()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( item == m_pvt->m_root )
|
||||||
|
m_pvt->m_root = NULL;
|
||||||
|
|
||||||
m_scene->removeItem( item );
|
m_scene->removeItem( item );
|
||||||
delete item;
|
delete item;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue