Fix crash in daemon
This commit is contained in:
parent
3e20e0ec22
commit
ef78640caf
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue