From 1e9c42d76bf7c9db7d060bbca4a53e1afac72433 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 1 Apr 2021 12:19:11 +0200 Subject: [PATCH] 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 --- src/plugins/projectexplorer/runconfiguration.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/projectexplorer/runconfiguration.cpp b/src/plugins/projectexplorer/runconfiguration.cpp index 5ec7b9c33cf..539cf2c8a87 100644 --- a/src/plugins/projectexplorer/runconfiguration.cpp +++ b/src/plugins/projectexplorer/runconfiguration.cpp @@ -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())) {