summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2018-10-30 16:38:18 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2018-10-31 08:19:35 +0000
commit8d279a05f2570ae1b964c90efd9a5bf2ce154b76 (patch)
treef1cf9d0a4a681d710d098b1a328789eca300f086
parent26840646bb0e1b82bb6608395ba6041538ced3ab (diff)
Fix regression not updating the device info during BTLE discovery
This is a regression introduced by 819bb06c2cb3372cb1bb9ddd7f3a504f78d3452d. The object context was missing and subsequent calls to QObject::sender() failed. As a consequence the signalling for the device updates never happened. Fixes: QTBUG-71479 Change-Id: I6f057912a9321969b59ded8b0a3e5602653e5f2e Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
index 86b7a5e7..51546df2 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
@@ -431,7 +431,7 @@ void QBluetoothDeviceDiscoveryAgentPrivate::deviceFoundBluez5(const QString& dev
OrgFreedesktopDBusPropertiesInterface *prop = new OrgFreedesktopDBusPropertiesInterface(
QStringLiteral("org.bluez"), devicePath, QDBusConnection::systemBus(), q);
QObject::connect(prop, &OrgFreedesktopDBusPropertiesInterface::PropertiesChanged,
- [this](const QString &interface, const QVariantMap &changedProperties,
+ q, [this](const QString &interface, const QVariantMap &changedProperties,
const QStringList &invalidatedProperties) {
this->_q_PropertiesChanged(interface, changedProperties, invalidatedProperties);
});