Commit 1515dab4 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Fixed the relative detection system. I'm not sure why didn't it work before.

This fix is leaving a tree that missrepresents the FS structure.

BUG: 192610
parent 2ff99341
......@@ -519,15 +519,14 @@ QList<KDevelop::ProjectFolderItem*> CMakeManager::parse( KDevelop::ProjectFolder
if(subf.isEmpty()) //This would not be necessary if we didn't parse the wrong lines
continue;
KUrl path;
if(KUrl::isRelativeUrl(subf))
KUrl path(subf);
if(path.isRelative())
{
path=KUrl(folder->url());
path.addPath(subf);
path.adjustPath(KUrl::AddTrailingSlash);
KUrl pp=KUrl(folder->url());
pp.addPath(subf);
path=pp;
}
else
path=KUrl(subf);
path.adjustPath(KUrl::AddTrailingSlash);
kDebug(9042) << "Found subdir " << path << "which should be into" << subroot;
if(subroot.isParentOf(path) || path.isParentOf(subroot))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment