diff --git a/core/daemon.cpp b/core/daemon.cpp index de98076c0..021a2e64a 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -130,7 +130,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; }