From 7c19f4d292da7d9e672cf9af801137c6abe47d6f Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Sat, 25 Sep 2004 18:41:50 +0000 Subject: [PATCH] fix for [ 805216 ] dirMac does not properly skip directories from kevin hock git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dirmac.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mac/carbon/dirmac.cpp b/src/mac/carbon/dirmac.cpp index d43b8f1401..b6525e7951 100644 --- a/src/mac/carbon/dirmac.cpp +++ b/src/mac/carbon/dirmac.cpp @@ -177,9 +177,9 @@ bool wxDirData::Read(wxString *filename) if ( (((FileInfo*)&catalogInfo.finderInfo)->finderFlags & kIsInvisible ) && !(m_flags & wxDIR_HIDDEN ) ) continue ; - // its a dir and we want it - if ( (catalogInfo.nodeFlags & kFSNodeIsDirectoryMask) && (m_flags & wxDIR_DIRS) ) - break ; + // its a dir and we don't want it + if ( (catalogInfo.nodeFlags & kFSNodeIsDirectoryMask) && !(m_flags & wxDIR_DIRS) ) + continue ; // its a file but we don't want it if ( (catalogInfo.nodeFlags & kFSNodeIsDirectoryMask) == 0 && !(m_flags & wxDIR_FILES ) ) -- 2.45.2