Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KDevelop
KDevelop
Commits
db1685a8
Commit
db1685a8
authored
Jun 20, 2012
by
Aleix Pol Gonzalez
🐧
Browse files
Improve Build directory retrieval
Properly navigate the original tree structure
BUG: 129469
parent
01e56a65
Changes
1
Hide whitespace changes
Inline
Side-by-side
projectmanagers/cmake/cmakemanager.cpp
View file @
db1685a8
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment