forked from qt-creator/qt-creator
ProjectExplorer: Avoid a QTC_ASSERT for a legitimated situation
Change-Id: I07ce3a286e366c039497379f8bfd2a7be9523c75 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -427,8 +427,9 @@ DeviceManager::DeviceManager(bool isInstance) : d(std::make_unique<DeviceManager
|
|||||||
|
|
||||||
deviceHooks.deviceDisplayName = [](const FilePath &filePath) {
|
deviceHooks.deviceDisplayName = [](const FilePath &filePath) {
|
||||||
auto device = DeviceManager::deviceForPath(filePath);
|
auto device = DeviceManager::deviceForPath(filePath);
|
||||||
QTC_ASSERT(device, return filePath.toUserOutput());
|
if (device)
|
||||||
return device->displayName();
|
return device->displayName();
|
||||||
|
return filePath.host().toString();
|
||||||
};
|
};
|
||||||
|
|
||||||
deviceHooks.ensureReachable = [](const FilePath &filePath, const FilePath &other) {
|
deviceHooks.ensureReachable = [](const FilePath &filePath, const FilePath &other) {
|
||||||
|
Reference in New Issue
Block a user