Commit 47c3037c authored by Tobias Hunger's avatar Tobias Hunger

Qt4: Show correct directory in warnings

Show the source directory in warnings about the next build overwriting
things if using in-source builds.

Task-number: QTCREATORBUG-8585
Change-Id: Ie8b5dc36fdfefa399284f3d90d6901c90dda0033
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 5bfdd929
......@@ -289,12 +289,12 @@ void Qt4ProjectConfigWidget::updateProblemLabel()
} else if (targetMismatch) {
setProblemLabel(shadowBuildWarning + tr("A build for a different project exists in %1, which will be overwritten.",
"%1 build directory")
.arg(m_ui->shadowBuildDirEdit->path()));
.arg(m_buildConfiguration->buildDirectory()));
return;
} else if (incompatibleBuild) {
setProblemLabel(shadowBuildWarning +tr("An incompatible build exists in %1, which will be overwritten.",
"%1 build directory")
.arg(m_ui->shadowBuildDirEdit->path()));
.arg(m_buildConfiguration->buildDirectory()));
return;
} else if (!shadowBuildWarning.isEmpty()) {
setProblemLabel(shadowBuildWarning);
......
Markdown is supported
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