Centralize retained node teardown
This commit is contained in:
@@ -437,7 +437,7 @@ public:
|
||||
}
|
||||
|
||||
const bool new_current = !p->m_current || p->m_container->get_child_index(p->m_current) == current_index;
|
||||
p->m_container->m_children[current_index]->destroy();
|
||||
pp::panopainter::destroy_legacy_node(*p->m_container->m_children[current_index]);
|
||||
if (clears_selection) {
|
||||
p->m_current = nullptr;
|
||||
} else if (new_current && selects_target) {
|
||||
|
||||
Reference in New Issue
Block a user