From kdevelop-bugs Tue Dec 28 13:49:13 2010 From: Aleix Pol Date: Tue, 28 Dec 2010 13:49:13 +0000 To: kdevelop-bugs Subject: [Bug 261434] Crash during parsing cmake project with Message-Id: <20101228134913.88A5078CD9 () immanuel ! kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=129354422603300 https://bugs.kde.org/show_bug.cgi?id=261434 Aleix Pol changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Aleix Pol 2010-12-28 14:49:13 --- commit d9a5cfc40e6a8952ddb377bcc53072c1da6a71bd branch 4.2 Author: Aleix Pol 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 CMakeManager::parse( KDevelop::ProjectFolder } path.adjustPath(KUrl::AddTrailingSlash); + if(QDir(path.toLocalFile()).exists()) { alreadyAdded.append(subf.name); CMakeFolderItem* parent=folder; -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs