treelistmodel: Clear item in right place
Items should be cleared when the node is discarded, not when the node's children are discarded - which can also happen when a node is collapsed.
Fixes an error introduced in 9048e391
Fixes #5681 (closed)
Items should be cleared when the node is discarded, not when the node's children are discarded - which can also happen when a node is collapsed.
Fixes an error introduced in 9048e391
Fixes #5681 (closed)