From abfa8c8183aa42d93256475f13337c18e378fbf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80lex=20Fiestas?= Date: Wed, 24 May 2017 23:54:00 +0200 Subject: [PATCH] Port to newer api This is a blind port, I have not tested it but allows this code to compile. --- core/backends/bluetooth/bluetoothpairinghandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/backends/bluetooth/bluetoothpairinghandler.cpp b/core/backends/bluetooth/bluetoothpairinghandler.cpp index fa6ee7a8f..c30bedb0a 100644 --- a/core/backends/bluetooth/bluetoothpairinghandler.cpp +++ b/core/backends/bluetooth/bluetoothpairinghandler.cpp @@ -58,7 +58,6 @@ void BluetoothPairingHandler::packageReceived(const NetworkPackage& np) return; } - Daemon::instance()->askPairingConfirmation(this); setInternalPairStatus(RequestedByPeer); } @@ -144,7 +143,9 @@ void BluetoothPairingHandler::setInternalPairStatus(BluetoothPairingHandler::Int m_status = status; if (status == Paired) { deviceLink()->setPairStatus(DeviceLink::Paired); - } else { + } else if (status == NotPaired){ deviceLink()->setPairStatus(DeviceLink::NotPaired); + } else if (status == RequestedByPeer) { + Q_EMIT deviceLink()->pairingRequest(this); } }