diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-06-01 22:19:40 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-01 16:53:29 -0700 |
commit | 3b4091a0b9fd8d2e0486390c90971e69e0a4749c (patch) | |
tree | be0b1b0197b0ae555c99b04b7c012ce9812ae29e /mobile-widgets/qmlmanager.cpp | |
parent | ed392694db0a878e14790073f73690384cdf1467 (diff) | |
download | subsurface-3b4091a0b9fd8d2e0486390c90971e69e0a4749c.tar.gz |
Android BT: do not force BT on
It is very impolite to force BT on at start of the mobile app. We cannot
know if the user is going to import dives over BT.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 8128fbce3..10b72d9f9 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -94,8 +94,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), alreadySaving(false) { #if defined(BT_SUPPORT) - if (localBtDevice.isValid()) { - localBtDevice.powerOn(); + if (localBtDevice.isValid() && + localBtDevice.hostMode() == QBluetoothLocalDevice::HostConnectable) { QStringList pairedBT = getBluetoothDevices(); for (int i = 0; i < pairedBT.length(); i++) { |