From 3954571fa0ebffac7f1ea2f01b9d891bbd3e83b2 Mon Sep 17 00:00:00 2001 From: Alex Blasche <alexander.blasche@theqtcompany.com> Date: Wed, 23 Dec 2015 10:07:23 +0100 Subject: [PATCH] Handle undefined QLowEnergyController error cases as Unknown error This is important on Android as not all error conditions are exposed via QLowEnergyController::Error enum. Change-Id: I442ecffcadc01e1a2b60ae17dc6e63e08e5f4149 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> --- src/bluetooth/qlowenergycontroller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp index e39df97c..3fb68e19 100644 --- a/src/bluetooth/qlowenergycontroller.cpp +++ b/src/bluetooth/qlowenergycontroller.cpp @@ -226,6 +226,7 @@ void QLowEnergyControllerPrivate::setError( break; case QLowEnergyController::NoError: return; + default: case QLowEnergyController::UnknownError: errorString = QLowEnergyController::tr("Unknown Error"); break; -- GitLab