Commit db1685a8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Improve Build directory retrieval

Properly navigate the original tree structure

BUG: 129469
parent 01e56a65
......@@ -471,14 +471,14 @@ CMakeManager::~CMakeManager()
KUrl CMakeManager::buildDirectory(KDevelop::ProjectBaseItem *item) const
{
CMakeFolderItem *fi=dynamic_cast<CMakeFolderItem*>(item);
KUrl ret;
ProjectBaseItem* parent = item->parent();
ProjectBaseItem* parent = fi ? fi->formerParent() : item->parent();
if (parent)
ret=buildDirectory(parent);
else
ret=CMake::currentBuildDir(item->project());
CMakeFolderItem *fi=dynamic_cast<CMakeFolderItem*>(item);
if(fi)
ret.addPath(fi->buildDir());
return ret;
......
Supports Markdown
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