[Bug 78776] crash in CustomProjectPart::populateProject populating new project

Jens Dagerbo jens.dagerbo at swipnet.se
Wed Mar 31 10:34:03 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=78776      




------- Additional Comments From jens.dagerbo swipnet se  2004-03-31 10:31 -------
CVS commit by dagerbo: 

BACKPORT
Don't crash when we don't have permission to read a directory.

CCMAIL: 78776 bugs kde org


  M +16 -13    customprojectpart.cpp   1.68.2.3


--- kdevelop/buildtools/custommakefiles/customprojectpart.cpp  #1.68.2.2:1.68.2.3
 @ -273,4 +273,6  @ void CustomProjectPart::populateProject(
         kdDebug(9025) << "Examining: " << dir.path() << endl;
         const QFileInfoList *dirEntries = dir.entryInfoList();
+        if ( dirEntries )
+        {
         QPtrListIterator<QFileInfo> it(*dirEntries);
         for (; it.current(); ++it) {
 @ -288,4 +290,5  @ void CustomProjectPart::populateProject(
             }
         }
+        }
     } while (!s.isEmpty());




More information about the KDevelop-devel mailing list