aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-11-27 18:00:10 +0100
committerChristian Kandeler <christian.kandeler@digia.com>2013-11-28 15:38:11 +0100
commit66ebf9e214f74fa82a88c2154b14d6853097a5b7 (patch)
tree20f92c16d7ba300404ec86b9e28765647a7d1f97 /src/app/qbs
parentdbb39fc1fce3686a5161d68e89e96086fc664556 (diff)
Return a clean build directory from the command line parser.
Otherwise, artifact file paths will not have the expected form if command-line arguments such ad "-d ." are used. Change-Id: I1ca3fa4f6167a506a80bf996c6f0f5c97a4e44f8 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/app/qbs')
-rw-r--r--src/app/qbs/parser/commandlineparser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/qbs/parser/commandlineparser.cpp b/src/app/qbs/parser/commandlineparser.cpp
index 46d1e6173..4e417befe 100644
--- a/src/app/qbs/parser/commandlineparser.cpp
+++ b/src/app/qbs/parser/commandlineparser.cpp
@@ -491,6 +491,7 @@ void CommandLineParser::CommandLineParserPrivate::setupBuildDirectory()
if (!QFileInfo(projectBuildDirectory).isAbsolute())
projectBuildDirectory = QDir::currentPath() + QLatin1Char('/') + projectBuildDirectory;
+ projectBuildDirectory = QDir::cleanPath(projectBuildDirectory);
}
void CommandLineParser::CommandLineParserPrivate::setupBuildOptions()