diff --git a/src/plugins/projectexplorer/devicesupport/idevicefactory.cpp b/src/plugins/projectexplorer/devicesupport/idevicefactory.cpp index e88a1e61367..b5178445702 100644 --- a/src/plugins/projectexplorer/devicesupport/idevicefactory.cpp +++ b/src/plugins/projectexplorer/devicesupport/idevicefactory.cpp @@ -67,7 +67,8 @@ IDevice::Ptr IDeviceFactory::create() const return {}; IDevice::Ptr device = m_creator(); - QTC_ASSERT(device, return {}); + if (!device) // e.g. Cancel used on the dialog to create a device + return {}; device->setDefaultDisplayName(displayName()); return device; }