Qmake: Do not repeat build directory in warning message

The build directory line edit is right above the label containing the
message, so repeating the build dir value just widens the label
unnesessarily.

Change-Id: I650a4ce76a82582b2710a4673c134dbb4faf306e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-02-20 15:33:26 +01:00
committed by hjk
parent 87d2df9d7b
commit daa58e899d

View File

@@ -319,16 +319,13 @@ void QmakeBuildConfiguration::updateProblemLabel()
return;
}
} else if (targetMismatch) {
buildDirectoryAspect()->setProblem(tr("A build for a different project exists in %1, "
"which will be overwritten.",
"%1 build directory")
.arg(buildDirectory().toUserOutput()));
buildDirectoryAspect()->setProblem(tr("The build directory contains a build for "
"a different project, which will be overwritten."));
return;
} else if (incompatibleBuild) {
buildDirectoryAspect()->setProblem(tr("%1 The build in %2 will be overwritten.",
"%1 error message, %2 build directory")
.arg(errorString)
.arg(buildDirectory().toUserOutput()));
buildDirectoryAspect()->setProblem(tr("%1 The build will be overwritten.",
"%1 error message")
.arg(errorString));
return;
} else if (unalignedBuildDir) {
buildDirectoryAspect()->setProblem(unalignedBuildDirWarning());