[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 261434] Crash during parsing cmake project with
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2010-12-28 13:49:13
Message-ID: 20101228134913.88A5078CD9 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=261434


Aleix Pol <aleixpol@kde.org> changed:

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




--- Comment #2 from Aleix Pol <aleixpol kde org>  2010-12-28 14:49:13 ---
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;

-- 
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic