summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2019-10-24 15:58:56 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2019-10-28 08:39:41 +0000
commitb5de909c3aab352c45f0a1211b026429f8dddf42 (patch)
tree2b9f0181d85c40f203f9a7eb489c37306bd31bc1
parentfc9eef2ce0114634ea75f6af2810f597a798549c (diff)
QBluetoothSocket(macOS) - fix _q_writeNotify's invocation
After the recent refactoring the writing ability was severed. Change-Id: Ib9f116cdbbbfd87593381cb62675cab4930a2ef1 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r--src/bluetooth/qbluetoothsocket_osx.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothsocket_osx.mm b/src/bluetooth/qbluetoothsocket_osx.mm
index f74c14f8..8af085ac 100644
--- a/src/bluetooth/qbluetoothsocket_osx.mm
+++ b/src/bluetooth/qbluetoothsocket_osx.mm
@@ -196,7 +196,7 @@ qint64 QBluetoothSocketPrivate::writeData(const char *data, qint64 maxSize)
// IOBluetoothL2CAPChannel is buffered (writeAsync).
if (!txBuffer.size())
- QMetaObject::invokeMethod(this, "_q_writeNotify", Qt::QueuedConnection);
+ QMetaObject::invokeMethod(this, [this](){_q_writeNotify();}, Qt::QueuedConnection);
char *dst = txBuffer.reserve(int(maxSize));
std::copy(data, data + maxSize, dst);