| Summary: | Crash during parsing cmake project with SUBDIRS(non_existent_directory) | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Chaos A.D. <chaos-ad> |
| Component: | Build tools: CMake | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | aleixpol |
| Priority: | VHI | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | 4.2.0 | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Chaos A.D.
2010-12-28 09:53:03 UTC
confirmed, Aleix can you fix this? commit d9a5cfc40e6a8952ddb377bcc53072c1da6a71bd branch 4.2 Author: Aleix Pol <aleixpol@kde.org> Date: Tue Dec 28 14:45:59 2010 +0100 Don't add to the tree unexisting directories. BUG: 261434 diff --git a/projectmanagers/cmake/cmakemanager.cpp b/projectmanagers/cmake/cmakemanager.cpp index 099781a..bfb8b7f 100644 --- a/projectmanagers/cmake/cmakemanager.cpp +++ b/projectmanagers/cmake/cmakemanager.cpp @@ -422,6 +422,7 @@ QList<KDevelop::ProjectFolderItem*> CMakeManager::parse( KDevelop::ProjectFolder } path.adjustPath(KUrl::AddTrailingSlash); + if(QDir(path.toLocalFile()).exists()) { alreadyAdded.append(subf.name); CMakeFolderItem* parent=folder; |