[ 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
This commit is contained in:
@@ -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) )
|
||||
{
|
||||
|
Reference in New Issue
Block a user