X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9f6f0a8cd0cf20fb93425b7d228c7a4d653625b..cc4d5638c66a409e421420ed7110917755a66788:/src/common/dircmn.cpp?ds=sidebyside diff --git a/src/common/dircmn.cpp b/src/common/dircmn.cpp index 1638cff0ac..11856868f8 100644 --- a/src/common/dircmn.cpp +++ b/src/common/dircmn.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 19.05.01 -// RCS-ID: $Id$ // Copyright: (c) 2001 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -115,7 +114,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) ) {