[Bug 75943] Crash during directory scan (loading project on startup or import existing project)

Jens Dagerbo jens.dagerbo at swipnet.se
Mon Mar 22 05:00:12 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=75943      
jens.dagerbo swipnet se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From jens.dagerbo swipnet se  2004-03-22 04:58 -------
CVS commit by dagerbo: 

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

CCMAIL: 75943-done bugs kde org


  M +20 -17    scriptprojectpart.cpp   1.41


--- kdevelop/buildtools/script/scriptprojectpart.cpp  #1.40:1.41
 @ -138,4 +138,6  @ void ScriptProjectPart::openProject(cons
         kdDebug(9015) << "Examining: " << dir.path() << endl;
         const QFileInfoList *dirEntries = dir.entryInfoList();
+        if ( dirEntries )
+        {
         QPtrListIterator<QFileInfo> it(*dirEntries);
         for (; it.current(); ++it) {
 @ -158,4 +160,5  @ void ScriptProjectPart::openProject(cons
             }
         }
+        }
     } while (!s.isEmpty());




More information about the KDevelop-devel mailing list