From 8d279a05f2570ae1b964c90efd9a5bf2ce154b76 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Tue, 30 Oct 2018 16:38:18 +0100 Subject: 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 --- src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); }); -- cgit v1.2.3