mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
ed392694db
commit
3b4091a0b9
1 changed files with 2 additions and 2 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue