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:
Christian Kandeler
2021-04-01 12:19:11 +02:00
parent 405cf39ee0
commit 1e9c42d76b

View File

@@ -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())) {