summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2016-11-16 14:24:55 +0100
committerAlex Blasche <alexander.blasche@qt.io>2016-11-16 13:47:19 +0000
commit8155f2156d5c6936edcac95c6a93ca7f96b1d13f (patch)
tree9a54a35120cee8e24fdb3041512001c78f607457
parentc792b767ed7af8e4e159d07e96dc2fe99b122142 (diff)
Ensure the QBluetoothLocalDevice::requestPairing sends error for iOS
Coincidentally this affects Windows Desktop and Linux systems without Bluez as well. Task-number: QTBUG-53331 Change-Id: Id2b7ddce2d8a7825008fd8cef5a21382bc228978 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r--src/bluetooth/qbluetoothlocaldevice_p.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothlocaldevice_p.cpp b/src/bluetooth/qbluetoothlocaldevice_p.cpp
index f266d64c..e9177f39 100644
--- a/src/bluetooth/qbluetoothlocaldevice_p.cpp
+++ b/src/bluetooth/qbluetoothlocaldevice_p.cpp
@@ -103,6 +103,9 @@ void QBluetoothLocalDevice::requestPairing(const QBluetoothAddress &address, Pai
{
Q_UNUSED(address);
Q_UNUSED(pairing);
+ QMetaObject::invokeMethod(this, "error", Qt::QueuedConnection,
+ Q_ARG(QBluetoothLocalDevice::Error,
+ QBluetoothLocalDevice::PairingError));
}
QBluetoothLocalDevice::Pairing QBluetoothLocalDevice::pairingStatus(