forked from qt-creator/qt-creator
ProjectExplorer: Do not cut off the "file extension"
... when constructing a run configuration display name. The target name is not typically a file name and might legitimately contain a dot. Fixes: QTCREATORBUG-25480 Change-Id: I7954763661d36ae20b931d6d05ef3e29b36a9fc9 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -432,9 +432,7 @@ RunConfigurationFactory::~RunConfigurationFactory()
|
||||
|
||||
QString RunConfigurationFactory::decoratedTargetName(const QString &targetName, Target *target)
|
||||
{
|
||||
QString displayName;
|
||||
if (!targetName.isEmpty())
|
||||
displayName = QFileInfo(targetName).completeBaseName();
|
||||
QString displayName = targetName;
|
||||
Utils::Id devType = DeviceTypeKitAspect::deviceTypeId(target->kit());
|
||||
if (devType != Constants::DESKTOP_DEVICE_TYPE) {
|
||||
if (IDevice::ConstPtr dev = DeviceKitAspect::device(target->kit())) {
|
||||
|
||||
Reference in New Issue
Block a user