Skip to content
Snippets Groups Projects
Commit 6c45e454 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix Release being displayed as Debug

 * Simplify code a bit, too.
parent 840d1587
No related branches found
No related tags found
No related merge requests found
...@@ -175,11 +175,8 @@ Qt4Target *Qt4TargetFactory::create(ProjectExplorer::Project *parent, const QStr ...@@ -175,11 +175,8 @@ Qt4Target *Qt4TargetFactory::create(ProjectExplorer::Project *parent, const QStr
QString displayName; QString displayName;
if (qtVersionCount > 1) if (qtVersionCount > 1)
displayName = tr("%1 %2", "build configuration display name, %1 is Qt version, %2 is debug or release"). displayName = info.version->displayName() + QChar(' ');
arg(info.version->displayName(), (info.buildConfig | QtVersion::DebugBuild) ? tr("Debug") : tr("Release")); displayName.append((info.buildConfig & QtVersion::DebugBuild) ? tr("Debug") : tr("Release"));
else
displayName = tr("%1", "debug buildconfiguration name (only one Qt version! %1 is debug or release)").
arg((info.buildConfig | QtVersion::DebugBuild) ? tr("Debug") : tr("Release"));
// Skip release builds for the symbian emulator. // Skip release builds for the symbian emulator.
if (id != QLatin1String(Constants::S60_EMULATOR_TARGET_ID) && if (id != QLatin1String(Constants::S60_EMULATOR_TARGET_ID) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment