also disable the auto device removal protection in the second remove method for now
This commit is contained in:
parent
5f4e524cca
commit
d7476e8064
@ -264,10 +264,11 @@ DeviceManager::DeviceError NymeaCore::removeConfiguredDevice(const DeviceId &dev
|
|||||||
return DeviceManager::DeviceErrorDeviceIsChild;
|
return DeviceManager::DeviceErrorDeviceIsChild;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device->autoCreated()) {
|
// FIXME: Let's remove this for now. It will come back with more fine grained control, presumably introducing a RemoveMethod flag in the DeviceClass
|
||||||
qCWarning(dcDeviceManager) << "This device has been auto-created and cannot be deleted manually.";
|
// if (device->autoCreated()) {
|
||||||
return DeviceManager::DeviceErrorCreationMethodNotSupported;
|
// qCWarning(dcDeviceManager) << "This device has been auto-created and cannot be deleted manually.";
|
||||||
}
|
// return DeviceManager::DeviceErrorCreationMethodNotSupported;
|
||||||
|
// }
|
||||||
|
|
||||||
// Check if this device has child devices
|
// Check if this device has child devices
|
||||||
QList<Device *> devicesToRemove;
|
QList<Device *> devicesToRemove;
|
||||||
|
|||||||
Reference in New Issue
Block a user