parent
7fb111de1e
commit
8a90e7153d
@ -265,6 +265,12 @@ void DevicePluginMock::deviceRemoved(Device *device)
|
|||||||
|
|
||||||
void DevicePluginMock::startMonitoringAutoDevices()
|
void DevicePluginMock::startMonitoringAutoDevices()
|
||||||
{
|
{
|
||||||
|
foreach (Device *device, myDevices()) {
|
||||||
|
if (device->deviceClassId() == mockDeviceAutoClassId) {
|
||||||
|
return; // We already have a Auto Mock device... do nothing.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DeviceDescriptor mockDescriptor(mockDeviceAutoClassId, "Mock Device (Auto created)");
|
DeviceDescriptor mockDescriptor(mockDeviceAutoClassId, "Mock Device (Auto created)");
|
||||||
|
|
||||||
ParamList params;
|
ParamList params;
|
||||||
|
|||||||
Reference in New Issue
Block a user