Fix crash in daemon

This commit is contained in:
Nicolas Fella 2019-04-14 17:25:02 +00:00 committed by Albert Vaca
parent 3e20e0ec22
commit ef78640caf

View file

@ -130,7 +130,8 @@ void Daemon::removeDevice(Device* device)
void Daemon::cleanDevices() void Daemon::cleanDevices()
{ {
for (Device* device : qAsConst(d->m_devices)) { const auto devs = d->m_devices;
for (Device* device : devs) {
if (device->isTrusted()) { if (device->isTrusted()) {
continue; continue;
} }