From bd89cc1fd5b2ec5f7f980feb5bc579251d3b12a6 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 29 Aug 2023 12:25:23 +0200 Subject: [PATCH] ProjectExplorer: Avoid a QTC_ASSERT for a legitimated situation Change-Id: I07ce3a286e366c039497379f8bfd2a7be9523c75 Reviewed-by: Eike Ziller --- src/plugins/projectexplorer/devicesupport/devicemanager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/devicesupport/devicemanager.cpp b/src/plugins/projectexplorer/devicesupport/devicemanager.cpp index b288a74477f..9fac88602b5 100644 --- a/src/plugins/projectexplorer/devicesupport/devicemanager.cpp +++ b/src/plugins/projectexplorer/devicesupport/devicemanager.cpp @@ -427,8 +427,9 @@ DeviceManager::DeviceManager(bool isInstance) : d(std::make_uniquedisplayName(); + if (device) + return device->displayName(); + return filePath.host().toString(); }; deviceHooks.ensureReachable = [](const FilePath &filePath, const FilePath &other) {