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-24 17:10:53 +0200
commitd74b56ac4bf88baa030e786bfa41a50c02de0a25 (patch)
tree9fb9f532656884350374e65dc8458c467616858d
parent6a31d209fdf707a36b96ea6163742af0edcac563 (diff)
QBluetoothSocket(macOS) - fix _q_writeNotify's invocation
After the recent refactoring the writing ability was severed. Change-Id: Ib9f116cdbbbfd87593381cb62675cab4930a2ef1 Reviewed-by: Alex Blasche <alexander.blasche@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);