X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9f6f0a8cd0cf20fb93425b7d228c7a4d653625b..ba49d2acf95d53517719c4fd9ac2ad5aaa13540b:/src/common/dircmn.cpp?ds=sidebyside diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index 1638cff0ac..7faa5bb3ea 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -115,7 +115,9 @@ size_t wxDir::Traverse(wxDirTraverser& sink, if ( flags & wxDIR_DIRS ) { wxString dirname; - for ( bool cont = GetFirst(&dirname, wxEmptyString, wxDIR_DIRS | (flags & wxDIR_HIDDEN) ); + for ( bool cont = GetFirst(&dirname, wxEmptyString, + (flags & ~(wxDIR_FILES | wxDIR_DOTDOT)) + | wxDIR_DIRS); cont; cont = cont && GetNext(&dirname) ) {