forked from qt-creator/qt-creator
ProjectExplorer: Fix build directory expansion
QDir::cleanPath() must be called on the expanded path, otherwise it messes with the data. For instance, QDir::cleanPath("%{a:b}/..") yields ".". Change-Id: If55b9c7a733097cb36f62fbdae49fe03b542fcdf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -86,7 +86,7 @@ BuildConfiguration::BuildConfiguration(Target *target, Core::Id id)
|
|||||||
|
|
||||||
Utils::FileName BuildConfiguration::buildDirectory() const
|
Utils::FileName BuildConfiguration::buildDirectory() const
|
||||||
{
|
{
|
||||||
const QString path = macroExpander()->expand(QDir::cleanPath(environment().expandVariables(m_buildDirectory.toString())));
|
const QString path = QDir::cleanPath(macroExpander()->expand(environment().expandVariables(m_buildDirectory.toString())));
|
||||||
return Utils::FileName::fromString(QDir::cleanPath(QDir(target()->project()->projectDirectory().toString()).absoluteFilePath(path)));
|
return Utils::FileName::fromString(QDir::cleanPath(QDir(target()->project()->projectDirectory().toString()).absoluteFilePath(path)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user