]> git.saurik.com Git - wxWidgets.git/commitdiff
Deselect a child item on Collapse. Otherwise
authorRobert Roebling <robert@roebling.de>
Sat, 25 Dec 2004 18:27:59 +0000 (18:27 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 25 Dec 2004 18:27:59 +0000 (18:27 +0000)
   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

src/generic/treectlg.cpp

index 8155541026828ae58fbd3173af8eaa4ae6fb9529..a75a6d718399eb2cf18d5c1862d6b43da83b8575 100644 (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;
     }