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

svn at pcbsd.org svn at pcbsd.org
Sun Aug 12 08:27:37 PDT 2007


Author: tim
Date: 2007-08-12 08:27:37 -0700 (Sun, 12 Aug 2007)
New Revision: 593

Modified:
   pcbsd/trunk/kcmPBMsource/pbm.ui.h
Log:
Fix crash issue where getDirSize() attempts to run against a non-existent directory

Modified: pcbsd/trunk/kcmPBMsource/pbm.ui.h
===================================================================
--- pcbsd/trunk/kcmPBMsource/pbm.ui.h	2007-08-12 15:06:21 UTC (rev 592)
+++ pcbsd/trunk/kcmPBMsource/pbm.ui.h	2007-08-12 15:27:37 UTC (rev 593)
@@ -802,6 +802,7 @@
     for (uint i=0; i<paths.size(); i++)
     {
 	QFileInfo dirInfo(paths[i]);
+	if (!dirInfo.exists()) break;
 	totalSize += dirInfo.size();
 	QDir dir(paths[i]);
 	const QFileInfoList *files = dir.entryInfoList();



More information about the Commits mailing list