diff --git a/core/daemon.cpp b/core/daemon.cpp index 91bb354e7..7e36e6d37 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -183,7 +183,7 @@ void Daemon::onNewDeviceLink(const NetworkPackage& identityPackage, DeviceLink* device->deleteLater(); } else { connect(device, SIGNAL(reachableStatusChanged()), this, SLOT(onDeviceStatusChanged())); - connect(device, SIGNAL(pairingChanged(bool)), this, SLOT(onDeviceStatusChanged())); + connect(device, SIGNAL(trustedChanged(bool)), this, SLOT(onDeviceStatusChanged())); d->mDevices[id] = device; Q_EMIT deviceAdded(id); diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index f62cdfa3a..72ebd93fa 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -193,8 +193,8 @@ void KdeConnectKcm::deviceSelected(const QModelIndex& current) resetDeviceView(); connect(currentDevice, SIGNAL(pluginsChanged()), this, SLOT(resetCurrentDevice())); - connect(currentDevice, SIGNAL(pairingChanged(bool)), this, SLOT(pairingChanged(bool))); - connect(currentDevice, SIGNAL(pairingFailed(QString)), this, SLOT(pairingFailed(QString))); + connect(currentDevice, SIGNAL(trustedChanged(bool)), this, SLOT(trustedChanged(bool))); + connect(currentDevice, SIGNAL(pairingError(QString)), this, SLOT(pairingFailed(QString))); } void KdeConnectKcm::resetCurrentDevice() @@ -266,13 +266,13 @@ void KdeConnectKcm::pairingFailed(const QString& error) { if (sender() != currentDevice) return; - pairingChanged(false); + trustedChanged(false); kcmUi->messages->setText(i18n("Error trying to pair: %1",error)); kcmUi->messages->animatedShow(); } -void KdeConnectKcm::pairingChanged(bool paired) +void KdeConnectKcm::trustedChanged(bool paired) { DeviceDbusInterface* senderDevice = (DeviceDbusInterface*) sender(); if (senderDevice != currentDevice) return; diff --git a/kcm/kcm.h b/kcm/kcm.h index 890b2bec0..cdc2a3ed6 100644 --- a/kcm/kcm.h +++ b/kcm/kcm.h @@ -53,7 +53,7 @@ private Q_SLOTS: void pluginsConfigChanged(); void sendPing(); void resetSelection(); - void pairingChanged(bool); + void trustedChanged(bool); void pairingFailed(const QString& error); void refresh(); void renameShow();