wxGenericDirCtrl now correctly updates itself when you click on 'show hidden'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2002-02-11 23:48:57 +00:00
parent d76ac8ed88
commit 3b423cdd3a

View 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)