From be9bd1505b1b6984f8e5e6217c03803514d4fc61 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 27 May 2019 14:34:54 +0200 Subject: [PATCH] ProjectExplorer: Trim value of build directory ... coming from the line edit. Nobody enters a build directory with leading or trailing spaces on purpose. Fixes: QTCREATORBUG-16805 Change-Id: Ic33f126fb9c4c0d008ebeaf00a78c737729be623 Reviewed-by: hjk --- src/plugins/projectexplorer/buildconfiguration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/buildconfiguration.cpp b/src/plugins/projectexplorer/buildconfiguration.cpp index 459cbf2ae2f..d0c5baebd0e 100644 --- a/src/plugins/projectexplorer/buildconfiguration.cpp +++ b/src/plugins/projectexplorer/buildconfiguration.cpp @@ -104,7 +104,7 @@ BuildConfiguration::BuildConfiguration(Target *target, Core::Id id) Utils::FileName BuildConfiguration::buildDirectory() const { - QString path = environment().expandVariables(m_buildDirectoryAspect->value()); + QString path = environment().expandVariables(m_buildDirectoryAspect->value().trimmed()); path = QDir::cleanPath(macroExpander()->expand(path)); return Utils::FileName::fromString(QDir::cleanPath(QDir(target()->project()->projectDirectory().toString()).absoluteFilePath(path))); }