summaryrefslogtreecommitdiff
path: root/src/bluetooth
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2018-09-28 09:35:56 +0200
committerAlex Blasche <alexander.blasche@qt.io>2018-09-28 10:45:12 +0000
commit54f9fe2c230963797dd4f0f9efed7132b0dc429e (patch)
tree616fadf122893b80c70c3a19d18a0306a4850047 /src/bluetooth
parent69e3e63ed9c31978d0663c87351c1b6918716d28 (diff)
downloadqtconnectivity-54f9fe2c230963797dd4f0f9efed7132b0dc429e.tar.gz
Don't report S_OK as error when calling GetAddressOf()v5.12.0-beta1
Fixes: QTBUG-70799 Change-Id: Iebbfbc2e00d83a6c08bb8a376c01734188e69388 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth')
-rw-r--r--src/bluetooth/qlowenergycontroller_winrt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergycontroller_winrt.cpp b/src/bluetooth/qlowenergycontroller_winrt.cpp
index 4beea12d..6efa2231 100644
--- a/src/bluetooth/qlowenergycontroller_winrt.cpp
+++ b/src/bluetooth/qlowenergycontroller_winrt.cpp
@@ -412,7 +412,7 @@ void QLowEnergyControllerPrivateWinRT::connectToDevice()
setError(QLowEnergyController::ConnectionError);
setState(QLowEnergyController::UnconnectedState);
return;
- } else {
+ } else if (hr != S_OK) {
qCWarning(QT_BT_WINRT) << "Connecting to device failed: "
<< qt_error_string(hr);
setError(QLowEnergyController::ConnectionError);