From 2b994b608ddb3f5354bff70e0f68f8db64ee8726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 17 Jul 2018 13:52:13 +0200 Subject: [PATCH] Add iOS comment for better code understanding --- libnymea-app-core/wifisetup/bluetoothdiscovery.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libnymea-app-core/wifisetup/bluetoothdiscovery.cpp b/libnymea-app-core/wifisetup/bluetoothdiscovery.cpp index 1978713b..63728d4d 100644 --- a/libnymea-app-core/wifisetup/bluetoothdiscovery.cpp +++ b/libnymea-app-core/wifisetup/bluetoothdiscovery.cpp @@ -59,6 +59,10 @@ BluetoothDiscovery::BluetoothDiscovery(QObject *parent) : m_discoveryAgent = new QBluetoothDeviceDiscoveryAgent(m_localDevice->address(), this); #else + // Note: on iOS there is no QBluetoothLocalDevice available, therefore we have ti assume there is one and + // start the discovery agent with the default constructor. + // https://bugreports.qt.io/browse/QTBUG-65547 + setBluetoothAvailable(true); m_discoveryAgent = new QBluetoothDeviceDiscoveryAgent(this); #endif