Commit 4d026f9b authored by El Mehdi Fekari's avatar El Mehdi Fekari Committed by Mehdi Fekari

Qnx: update the runconfiguration display name

The "on BlackBerry Device" sequence makes little sense
and could be removed to be more consistent with the rest of
QTC run config widgets.

Task-number: QTCREATORBUG-9550

Change-Id: I024929a13352040f032cd51382ff57bb9bed59ff
Reviewed-by: Nicolas Arnaud-Cormos's avatarNicolas Arnaud-Cormos <nicolas@kdab.com>
parent ee77d21b
......@@ -70,7 +70,7 @@ void BlackBerryRunConfiguration::init()
void BlackBerryRunConfiguration::updateDisplayName()
{
if (!m_proFilePath.isEmpty())
setDefaultDisplayName(tr("%1 on BlackBerry device").arg(QFileInfo(m_proFilePath).completeBaseName()));
setDefaultDisplayName(QFileInfo(m_proFilePath).completeBaseName());
else
setDefaultDisplayName(tr("Run on BlackBerry device"));
}
......
......@@ -75,7 +75,7 @@ QString BlackBerryRunConfigurationFactory::displayNameForId(const Core::Id id) c
return QString();
if (id.name().startsWith(Constants::QNX_BB_RUNCONFIGURATION_PREFIX))
return tr("%1 on BlackBerry Device").arg(QFileInfo(path).completeBaseName());
return QFileInfo(path).completeBaseName();
return QString();
}
......
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