From ef78640caf47cd8823c938dfda5ce02b734e3e53 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sun, 14 Apr 2019 17:25:02 +0000 Subject: [PATCH] Fix crash in daemon --- core/daemon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }