]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for [ 805216 ] dirMac does not properly skip directories from kevin hock
authorRyan Norton <wxprojects@comcast.net>
Sat, 25 Sep 2004 18:41:50 +0000 (18:41 +0000)
committerRyan Norton <wxprojects@comcast.net>
Sat, 25 Sep 2004 18:41:50 +0000 (18:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dirmac.cpp

index d43b8f1401f30efd19c3daa64c43ca1c282ee5f1..b6525e795149729e84646fa508041b4e9558de11 100644 (file)
@@ -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 ) )