forked from qt-creator/qt-creator
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 <nicolas@kdab.com>
This commit is contained in:
committed by
Mehdi Fekari
parent
ee77d21b00
commit
4d026f9b53
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user