[PC-BSD Commits] r609 - pcbsd/trunk/kcmPBMsource

svn at pcbsd.org svn at pcbsd.org
Thu Aug 16 16:16:49 PDT 2007


Author: kris
Date: 2007-08-16 16:16:49 -0700 (Thu, 16 Aug 2007)
New Revision: 609

Modified:
   pcbsd/trunk/kcmPBMsource/pbm.ui.h
Log:

Fixed another bug causing crashing in the PBI removal tool, ignore symlinks
now to get a real dir size



Modified: pcbsd/trunk/kcmPBMsource/pbm.ui.h
===================================================================
--- pcbsd/trunk/kcmPBMsource/pbm.ui.h	2007-08-16 23:02:59 UTC (rev 608)
+++ pcbsd/trunk/kcmPBMsource/pbm.ui.h	2007-08-16 23:16:49 UTC (rev 609)
@@ -823,7 +823,7 @@
 	QFileInfoListIterator it( *files );
 	while ((fileInfo = it.current()) != 0)
 	{
-	    if (fileInfo->isDir() && ((fileInfo->fileName() != "..") && (fileInfo->fileName() != "."))) { paths += fileInfo->absFilePath(); }
+	    if (fileInfo->isDir() && (( ! fileInfo->isSymLink()) && (fileInfo->fileName() != "..") && (fileInfo->fileName() != "."))) { paths += fileInfo->absFilePath(); }
 	    else if (fileInfo->isFile()) { totalSize += fileInfo->size(); }
 	    ++it;
 	}



More information about the Commits mailing list