Deselect a child item on Collapse. Otherwise

we end up with 2 selected item even in
   single selection mode. This is a follow-up
   to the no-dangling pointer patch and also
   reflects MSW behaviour.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2004-12-25 18:27:59 +00:00
parent 054004b96d
commit af3961b357

View File

@ -1511,6 +1511,7 @@ void wxGenericTreeCtrl::ChildrenClosing(wxGenericTreeItem* item)
m_select_me = item;
}
if (item != m_current && IsDescendantOf(item, m_current)) {
m_current->SetHilight( false );
m_current = NULL;
m_select_me = item;
}