summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2019-03-20 10:58:21 +0100
committerAlex Blasche <alexander.blasche@qt.io>2019-03-25 15:28:04 +0000
commit545b282d6d4a3c66e00c41ffd83c1a69f6fd0ad2 (patch)
tree0587a1dcdcaa2acb6631861079ec6da01588d221
parent043145014565dad540b416a0b369a7d04630e649 (diff)
Ensure DBus based QBluetoothSocket emits bytesWritten() signal
[ChangeLog][QtBluetooth][Linux/BlueZ] Fixed missing emission of QBluetoothSocket::bytesWritten() signal on Bluez v5.46+. Fixes: QTBUG-74513 Change-Id: I93cb5abe65e13f6a5cc5bb195cc98526a507916a Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r--src/bluetooth/qbluetoothsocket_bluezdbus.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothsocket_bluezdbus.cpp b/src/bluetooth/qbluetoothsocket_bluezdbus.cpp
index c98d0c26..d3fc13e4 100644
--- a/src/bluetooth/qbluetoothsocket_bluezdbus.cpp
+++ b/src/bluetooth/qbluetoothsocket_bluezdbus.cpp
@@ -538,6 +538,8 @@ void QBluetoothSocketPrivateBluezDBus::remoteConnected(const QDBusUnixFileDescri
q, &QBluetoothSocket::readyRead);
connect(localSocket, &QLocalSocket::stateChanged,
this, &QBluetoothSocketPrivateBluezDBus::socketStateChanged);
+ connect(localSocket, &QLocalSocket::bytesWritten,
+ q, &QBluetoothSocket::bytesWritten);
socket = descriptor;
q->setSocketState(QBluetoothSocket::ConnectedState);