]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1008799 ] Traverse hidden directories only if hidden flag set
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 13 Aug 2004 21:56:11 +0000 (21:56 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 13 Aug 2004 21:56:11 +0000 (21:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dircmn.cpp

index c81991c43b3e623cdc5485830374db58f2d932cb..7a14d42bd9a467db502f312817c2f4571a876f87 100644 (file)
@@ -99,7 +99,7 @@ size_t wxDir::Traverse(wxDirTraverser& sink,
     if ( flags & wxDIR_DIRS )
     {
         wxString dirname;
-        for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | wxDIR_HIDDEN);
+        for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | (flags & wxDIR_HIDDEN) );
               cont;
               cont = cont && GetNext(&dirname) )
         {