diff --git a/core/daemon.cpp b/core/daemon.cpp index ec6fd6c13..4a77ea2d2 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -136,7 +136,8 @@ void Daemon::removeDevice(Device* device) void Daemon::cleanDevices() { - for (Device* device : qAsConst(d->m_devices)) { + const auto devs = d->m_devices; + for (Device* device : devs) { if (device->isTrusted()) { continue; }