Reflect property change when unpairing

There's no pairStatusChanged when the device is not connected to
anything (be it because it's unreachable at the moment).
This commit is contained in:
Aleix Pol 2017-07-14 01:01:15 +02:00
parent b67761a442
commit 209e3e2842
2 changed files with 2 additions and 0 deletions

View file

@ -176,6 +176,7 @@ void Device::unpair()
dl->userRequestsUnpair();
}
KdeConnectConfig::instance()->removeTrustedDevice(id());
Q_EMIT trustedChanged(false);
}
void Device::pairStatusChanged(DeviceLink::PairStatus status)

View file

@ -271,6 +271,7 @@ void KdeConnectKcm::unpair()
return;
}
setCurrentDeviceTrusted(NotTrusted);
currentDevice->unpair();
}