diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2013-07-24 10:37:33 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-31 09:49:24 +0200 |
commit | a1d86abb9b297e9a6054b1e814e89b78a96a846c (patch) | |
tree | 7d03b96e6afc808eb3f8d05e19c35a610c1c719f /src | |
parent | 9257e5cec2d6196d0a2953d0ae95d51d730a1c81 (diff) |
Fix bluetooth device discovery test
The Bluez and Generic backends were failing.
Change-Id: Id4a55a43432a9ad198d36062a1e4e23a54b658ec
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp index 2106639c..fba88b3c 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp @@ -51,6 +51,7 @@ QT_BEGIN_NAMESPACE_BLUETOOTH QBluetoothDeviceDiscoveryAgentPrivate::QBluetoothDeviceDiscoveryAgentPrivate() { + inquiryType = QBluetoothDeviceDiscoveryAgent::GeneralUnlimitedInquiry; } QBluetoothDeviceDiscoveryAgentPrivate::~QBluetoothDeviceDiscoveryAgentPrivate() @@ -64,6 +65,10 @@ bool QBluetoothDeviceDiscoveryAgentPrivate::isActive() const void QBluetoothDeviceDiscoveryAgentPrivate::start() { + Q_Q(QBluetoothDeviceDiscoveryAgent); + lastError = QBluetoothDeviceDiscoveryAgent::IOFailure; + errorString = QStringLiteral("No Bluetooth device available"); + emit q->error(QBluetoothDeviceDiscoveryAgent::IOFailure); } void QBluetoothDeviceDiscoveryAgentPrivate::stop() |