]> git.saurik.com Git - wxWidgets.git/commitdiff
simplify code by removing workaround not needed any longer after fix of r60910 (see...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jun 2009 17:27:29 +0000 (17:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jun 2009 17:27:29 +0000 (17:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index 9bb119ebea1bc63dca59e602ed82108c275f8be8..ee55328f7bc2d3382807b781114f20d83576b010 100644 (file)
@@ -1179,12 +1179,7 @@ void wxGenericDirCtrl::SelectPath(const wxString& path, bool select)
 
     if ( done )
     {
-        if(select && m_treeCtrl->IsSelected(id))
-            return;
-        else
-        {
-            m_treeCtrl->SelectItem(id, select);
-        }
+        m_treeCtrl->SelectItem(id, select);
     }
 }