aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-12-07 23:32:07 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-08 08:38:31 -0800
commita696da91469e117301eaca234ed968a4ba3481cc (patch)
tree3de216802e087745e7f34f22025f7c447308a46a
parent5a8174679716c3f1e392c4d9656821471bb2df47 (diff)
downloadsubsurface-a696da91469e117301eaca234ed968a4ba3481cc.tar.gz
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 <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--configuredivecomputerthreads.cpp2
1 files changed, 2 insertions, 0 deletions
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);