diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-08-14 09:05:04 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-08-14 07:37:09 +0000 |
commit | da3a8b4527e65c85f3c723e27f4d2da12359aa1d (patch) | |
tree | e308f260c4770d7746fa014fcde28f39c0f1088f /src | |
parent | 7d3ee483c5fc348f43d93c0be0909e769dc51606 (diff) |
Android: Fix missing connected() signal emission for QBluetoothSocket
This only happens when QBluetoothSocket was used in connection with
QBluetoothServer.
Change-Id: I9fcc3026415f815f9a44a10d721056437465f8b8
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/bluetooth/qbluetoothsocket_android.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothsocket_android.cpp b/src/bluetooth/qbluetoothsocket_android.cpp index 5d0bf5fd..abb0c5e9 100644 --- a/src/bluetooth/qbluetoothsocket_android.cpp +++ b/src/bluetooth/qbluetoothsocket_android.cpp @@ -929,7 +929,7 @@ bool QBluetoothSocketPrivateAndroid::setSocketDescriptor(const QAndroidJniObject workerThread->setupWorker(this, socketObject, QAndroidJniObject(), !USE_FALLBACK); workerThread->start(); - if (openMode == QBluetoothSocket::ConnectedState) + if (socketState == QBluetoothSocket::ConnectedState) emit q->connected(); return true; |