]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dircmn.cpp
streamlining code for extra controls
[wxWidgets.git] / src / common / dircmn.cpp
index 89ec5076e27361ca934e250dd2a3aa43fa0f8d7c..79ce97e0a3814549c45cf619eac4b24ec838500a 100644 (file)
@@ -347,8 +347,7 @@ wxULongLong wxDir::GetTotalSize(const wxString &dirname, wxArrayString *filesSki
         return wxInvalidSize;
 
     wxDirTraverserSumSize traverser;
-    if (dir.Traverse(traverser) == (size_t)-1 ||
-        traverser.GetTotalSize() == 0)
+    if (dir.Traverse(traverser) == (size_t)-1 )
         return wxInvalidSize;
 
     if (filesSkipped)