From d7476e8064455361ca7cb558856df4d73ba2687f Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Fri, 13 Apr 2018 11:50:19 +0200 Subject: [PATCH] also disable the auto device removal protection in the second remove method for now --- libnymea-core/nymeacore.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libnymea-core/nymeacore.cpp b/libnymea-core/nymeacore.cpp index 60f51128..88220f7d 100644 --- a/libnymea-core/nymeacore.cpp +++ b/libnymea-core/nymeacore.cpp @@ -264,10 +264,11 @@ DeviceManager::DeviceError NymeaCore::removeConfiguredDevice(const DeviceId &dev return DeviceManager::DeviceErrorDeviceIsChild; } - if (device->autoCreated()) { - qCWarning(dcDeviceManager) << "This device has been auto-created and cannot be deleted manually."; - return DeviceManager::DeviceErrorCreationMethodNotSupported; - } + // FIXME: Let's remove this for now. It will come back with more fine grained control, presumably introducing a RemoveMethod flag in the DeviceClass +// if (device->autoCreated()) { +// qCWarning(dcDeviceManager) << "This device has been auto-created and cannot be deleted manually."; +// return DeviceManager::DeviceErrorCreationMethodNotSupported; +// } // Check if this device has child devices QList devicesToRemove;