Commit 03ec0b17 authored by Andreas Holzammer's avatar Andreas Holzammer Committed by Christian Kandeler
Browse files

Allow adding of non auto detected devices

Change-Id: I1f01db9cdd63e706bba60584d2857ae1a5d85dcb
Reviewed-by: default avatarChristian Kandeler <>
parent e72be772
...@@ -228,7 +228,6 @@ Utils::FileName DeviceManager::settingsFilePath(const QString &extension) ...@@ -228,7 +228,6 @@ Utils::FileName DeviceManager::settingsFilePath(const QString &extension)
void DeviceManager::addDevice(const IDevice::Ptr &_device) void DeviceManager::addDevice(const IDevice::Ptr &_device)
{ {
const IDevice::Ptr device = _device->clone(); const IDevice::Ptr device = _device->clone();
QTC_ASSERT(this != instance() || device->isAutoDetected(), return);
QString name = device->displayName(); QString name = device->displayName();
const int pos = d->indexForId(device->id()); const int pos = d->indexForId(device->id());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment