]> git.saurik.com Git - wxWidgets.git/commitdiff
do nothing in ShowHidden() if the flag doesn't change (patch 1678963)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Mar 2007 00:30:33 +0000 (00:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Mar 2007 00:30:33 +0000 (00:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dirctrlg.cpp

index e877e833bb0e95367863d6449458307a78d35efb..9182fecd2f8ca5877b273c97e852dcee65a8e5c7 100644 (file)
@@ -635,6 +635,9 @@ wxTreeCtrl* wxGenericDirCtrl::CreateTreeCtrl(wxWindow *parent, wxWindowID id, co
 
 void wxGenericDirCtrl::ShowHidden( bool show )
 {
+    if ( m_showHidden == show )
+        return;
+
     m_showHidden = show;
 
     wxString path = GetPath();