summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/bluez/bluez5_helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/bluez/bluez5_helper.cpp')
-rw-r--r--src/bluetooth/bluez/bluez5_helper.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bluetooth/bluez/bluez5_helper.cpp b/src/bluetooth/bluez/bluez5_helper.cpp
index bacdfe3c..7ce67690 100644
--- a/src/bluetooth/bluez/bluez5_helper.cpp
+++ b/src/bluetooth/bluez/bluez5_helper.cpp
@@ -195,6 +195,13 @@ bool mandatoryHciIoctlsAvailable()
QVersionNumber bluetoothdVersion()
{
if (bluezDaemonVersion()->isNull()) {
+ // Register DBus specific meta types (copied from isBluez5())
+ // Not all code paths run through isBluez5() but still need the
+ // registration.
+ qDBusRegisterMetaType<InterfaceList>();
+ qDBusRegisterMetaType<ManagedObjectList>();
+ qDBusRegisterMetaType<ManufacturerDataList>();
+
qCDebug(QT_BT_BLUEZ) << "Detecting bluetoothd version";
//Order of matching
// 1. Pick whatever the user decides via BLUETOOTH_FORCE_DBUS_LE_VERSION