mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-10-21 14:23:24 +02:00
Merge remote-tracking branch 'origin/fix-simulation-device-removal'
This commit is contained in:
commit
ee48fdf247
@ -62,9 +62,12 @@ DeviceManager::DeviceSetupStatus DevicePluginSimulation::setupDevice(Device *dev
|
|||||||
|
|
||||||
void DevicePluginSimulation::deviceRemoved(Device *device)
|
void DevicePluginSimulation::deviceRemoved(Device *device)
|
||||||
{
|
{
|
||||||
QTimer *t = m_simulationTimers.take(device);
|
// Clean up any timers we may have for this device
|
||||||
t->stop();
|
if (m_simulationTimers.contains(device)) {
|
||||||
t->deleteLater();
|
QTimer *t = m_simulationTimers.take(device);
|
||||||
|
t->stop();
|
||||||
|
t->deleteLater();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DeviceManager::DeviceError DevicePluginSimulation::executeAction(Device *device, const Action &action)
|
DeviceManager::DeviceError DevicePluginSimulation::executeAction(Device *device, const Action &action)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user