close #277
This commit is contained in:
parent
36a89c580c
commit
da9927f61f
@ -119,7 +119,13 @@ DeviceManager::DeviceSetupStatus DevicePluginMock::setupDevice(Device *device)
|
|||||||
|
|
||||||
void DevicePluginMock::postSetupDevice(Device *device)
|
void DevicePluginMock::postSetupDevice(Device *device)
|
||||||
{
|
{
|
||||||
|
qCDebug(dcMockDevice) << "Postsetup mockdevice" << device->name();
|
||||||
if (device->deviceClassId() == mockParentDeviceClassId) {
|
if (device->deviceClassId() == mockParentDeviceClassId) {
|
||||||
|
foreach (Device *d, myDevices()) {
|
||||||
|
if (d->deviceClassId() == mockChildDeviceClassId && d->parentId() == device->id()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
onChildDeviceDiscovered(device->id());
|
onChildDeviceDiscovered(device->id());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user