Summary: | Crash during directory scan (loading project on startup or import existing project) | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Michael Aichler <micha> |
Component: | scriptproject | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | f.sonntag |
Priority: | NOR | ||
Version: | 3.0.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Michael Aichler
2004-02-23 21:42:15 UTC
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()); CVS commit by dagerbo: Don't crash when we don't have permission to read a directory. CCMAIL: 75943@bugs.kde.org M +20 -17 scriptprojectpart.cpp 1.39.2.1 --- kdevelop/buildtools/script/scriptprojectpart.cpp #1.39:1.39.2.1 @@ -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()); |