Fix crash in daemon

This commit is contained in:
Nicolas Fella 2019-04-14 17:25:02 +00:00
parent d6de041324
commit b50b794250

View file

@ -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;
}