]> git.saurik.com Git - wxWidgets.git/commitdiff
wxGenericDirCtrl now correctly updates itself when you click on 'show hidden'
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 11 Feb 2002 23:48:57 +0000 (23:48 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 11 Feb 2002 23:48:57 +0000 (23:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index c56008620eb1bc057f89a4031cfa2d1be0de1453..ab27ea34263de19af433a2366c9103ec84c0ceb2 100644 (file)
@@ -579,7 +579,10 @@ void wxGenericDirCtrl::ShowHidden( bool show )
 {
     m_showHidden = show;
 
-    // reparse FIXME
+    wxString path = GetPath();
+    m_treeCtrl->Collapse(m_treeCtrl->GetRootItem());
+    m_treeCtrl->Expand(m_treeCtrl->GetRootItem());
+    SetPath(path);
 }
 
 void wxGenericDirCtrl::AddSection(const wxString& path, const wxString& name, int imageId)