diff options
author | 2017-10-14 04:01:12 -0700 | |
---|---|---|
committer | 2017-10-14 04:01:12 -0700 | |
commit | 0039c61dce78ab148b05ceec3283a3bd29e1bb30 (patch) | |
tree | d8a429a53cb42e69a017ac4534fedfb075880a1f /core/btdiscovery.cpp | |
parent | aa7e78611ec87ce928f62a41311d47dec016ba97 (diff) | |
parent | ba4058667a21a278a394054fea70595358ac41f2 (diff) | |
download | subsurface-0039c61dce78ab148b05ceec3283a3bd29e1bb30.tar.gz |
Merge branch 'dynamic-bt' of https://github.com/janmulder/subsurface
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r-- | core/btdiscovery.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index f9c6e8522..281e3b314 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -60,6 +60,12 @@ BTDiscovery::BTDiscovery(QObject *parent) } m_instance = this; #if defined(BT_SUPPORT) + BTDiscoveryReDiscover(); +#endif +} + +void BTDiscovery::BTDiscoveryReDiscover() +{ #if !defined(Q_OS_IOS) if (localBtDevice.isValid() && localBtDevice.hostMode() == QBluetoothLocalDevice::HostConnectable) { @@ -100,7 +106,6 @@ BTDiscovery::BTDiscovery(QObject *parent) m_btValid = false; } #endif -#endif } BTDiscovery::~BTDiscovery() |