From 209e3e2842275caf5cda0f5bd782a58cddfec778 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 14 Jul 2017 01:01:15 +0200 Subject: [PATCH] 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). --- core/device.cpp | 1 + kcm/kcm.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/core/device.cpp b/core/device.cpp index 6dbd0c34c..413d89587 100644 --- a/core/device.cpp +++ b/core/device.cpp @@ -176,6 +176,7 @@ void Device::unpair() dl->userRequestsUnpair(); } KdeConnectConfig::instance()->removeTrustedDevice(id()); + Q_EMIT trustedChanged(false); } void Device::pairStatusChanged(DeviceLink::PairStatus status) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index ce54c8c75..43462b19b 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -271,6 +271,7 @@ void KdeConnectKcm::unpair() return; } + setCurrentDeviceTrusted(NotTrusted); currentDevice->unpair(); }