From a696da91469e117301eaca234ed968a4ba3481cc Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sun, 7 Dec 2014 23:32:07 +0100 Subject: Make sure the device open error reaches the user This is a bit ugly fix to make sure the right error message reaches the user in case of being unable to open the device. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- configuredivecomputerthreads.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configuredivecomputerthreads.cpp') diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp index 82a6778a1..209794b3b 100644 --- a/configuredivecomputerthreads.cpp +++ b/configuredivecomputerthreads.cpp @@ -802,6 +802,8 @@ void ReadSettingsThread::run() } else { lastError = tr("Could not a establish connection to the dive computer."); emit error(lastError); + // So we don't trigger the "unsupported" clause later.. + supported = true; } unsupported_dc_error: dc_device_close(m_data->device); -- cgit v1.2.3-70-g09d2