diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-11-09 11:55:59 +0100 |
---|---|---|
committer | Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com> | 2015-11-10 17:12:00 +0000 |
commit | 34904f021fbee34ec51c732fa28a5bd7ffabdde8 (patch) | |
tree | daff5699b4f138c65d87f84259ca63ea8da4f7f7 | |
parent | 04c01d562a41cc0e287d698666e648e14fb6d3f1 (diff) | |
download | qtconnectivity-34904f021fbee34ec51c732fa28a5bd7ffabdde8.tar.gz |
QLowEnergyController: Add missing error string for ConnectionError.
Also remove the default case from the switch so the next such oversight
causes a compiler warning.
Change-Id: If332a9a00698debb834462f442dddb0dac40b83d
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
-rw-r--r-- | src/bluetooth/qlowenergycontroller.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp index 99a3724e..62e8f7e3 100644 --- a/src/bluetooth/qlowenergycontroller.cpp +++ b/src/bluetooth/qlowenergycontroller.cpp @@ -222,8 +222,12 @@ void QLowEnergyControllerPrivate::setError( case QLowEnergyController::NetworkError: errorString = QLowEnergyController::tr("Error occurred during connection I/O"); break; + case QLowEnergyController::ConnectionError: + errorString = QLowEnergyController::tr("Error occurred trying to connect to remote device."); + break; + case QLowEnergyController::NoError: + return; case QLowEnergyController::UnknownError: - default: errorString = QLowEnergyController::tr("Unknown Error"); break; } |