summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-01-06 13:29:22 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-07 09:08:43 +0100
commit5e9a7dee5a2562c518f670337f6e3cbe1db64f8a (patch)
tree97ba088d842f5233f65135e229ff7dbd6701dbdf /src
parent9f547761f35fff54994f805735d5ac2e538e53dc (diff)
Don't set the internal service discovery state twice to the same
The first call is not necessary as nothing has changed in the meantime. Change-Id: I8db51fd725dd210b3d5c7b01d399d24877bf9b2f Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qbluetoothservicediscoveryagent.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent.cpp b/src/bluetooth/qbluetoothservicediscoveryagent.cpp
index 7880ba20..3d763961 100644
--- a/src/bluetooth/qbluetoothservicediscoveryagent.cpp
+++ b/src/bluetooth/qbluetoothservicediscoveryagent.cpp
@@ -431,8 +431,6 @@ void QBluetoothServiceDiscoveryAgentPrivate::startServiceDiscovery()
{
Q_Q(QBluetoothServiceDiscoveryAgent);
- setDiscoveryState(ServiceDiscovery);
-
if (discoveredDevices.isEmpty()) {
setDiscoveryState(Inactive);
emit q->finished();