git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30601
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
tree->SendDeleteEvent(child);
child->DeleteChildren(tree);
tree->SendDeleteEvent(child);
child->DeleteChildren(tree);
+ if (child == tree->m_select_me)
+ tree->m_select_me = NULL;
// and delete all of its children and the item itself now
item->DeleteChildren(this);
SendDeleteEvent(item);
// and delete all of its children and the item itself now
item->DeleteChildren(this);
SendDeleteEvent(item);
+
+ if (item == m_select_me)
+ m_select_me = NULL;
+