From b50b794250232cb8870e5fd5b960490f9ddbb5c2 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 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; }