From f20d1100cccae6c1f5edb268426be9ee4b1adc56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 13 Aug 2004 21:56:11 +0000 Subject: [PATCH] [ 1008799 ] Traverse hidden directories only if hidden flag set git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dircmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index c81991c43b..7a14d42bd9 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -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) ) { -- 2.45.2