KDE/kdevelop/src

Andras Mantia amantia at kde.org
Sat Jul 2 16:33:16 UTC 2005


SVN commit 430878 by amantia:

Fix the classview: always use the canonical path for (local) project names.

CCMAIL: kdevelop-devel at kdevelop.org

 M  +10 -1     projectmanager.cpp  


--- trunk/KDE/kdevelop/src/projectmanager.cpp #430877:430878
@@ -1,5 +1,6 @@
 #include <qfile.h>
 #include <qfileinfo.h>
+#include <qdir.h>
 #include <qdom.h>
 #include <qstringlist.h>
 #include <qptrlist.h>
@@ -202,11 +203,19 @@
   }
 }
 
-bool ProjectManager::loadProject(const KURL &url)
+bool ProjectManager::loadProject(const KURL &projectURL)
 {
+  KURL url = projectURL;
+  
   if (!url.isValid())
     return false;
 
+  if (url.isLocalFile()) 
+  {
+    QDir dir(url.path());
+    url.setPath(dir.canonicalPath());
+  }
+
   // reopen the already opened project?
   if( url.path() == projectFile().path() )
   {




More information about the KDevelop-devel mailing list