summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdevicediscoveryagent_osx.mm
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2016-06-24 09:24:18 +0200
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-06-27 13:54:28 +0000
commitee271934bf86193c4aabc95b7b870ccb761d4924 (patch)
treeda87b8a21c80ce637332719b54a0ae2782b8a9db /src/bluetooth/qbluetoothdevicediscoveryagent_osx.mm
parente69fed2980b48e21035b1be930901f2d8856b725 (diff)
Simplify setLowEnergyTimeout() on iOS and OSX
These two platforms always use a timeout. There is no need to test for a disabled timeout feature. Change-Id: If066c286d283ae793ef2b41794587792511a5926 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent_osx.mm')
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_osx.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_osx.mm b/src/bluetooth/qbluetoothdevicediscoveryagent_osx.mm
index 48f84357..02a45f18 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_osx.mm
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_osx.mm
@@ -588,9 +588,8 @@ QString QBluetoothDeviceDiscoveryAgent::errorString() const
void QBluetoothDeviceDiscoveryAgent::setLowEnergyDiscoveryTimeout(int timeout)
{
// cannot deliberately turn it off
- if (d_ptr->lowEnergySearchTimeout < 0 || timeout < 0) {
- qCDebug(QT_BT_OSX) << "The Bluetooth Low Energy device discovery timeout cannot be negative "
- "or set on a backend which does not support this feature.";
+ if (timeout < 0) {
+ qCDebug(QT_BT_OSX) << "The Bluetooth Low Energy device discovery timeout cannot be negative.";
return;
}