diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-12-07 23:32:07 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-08 08:38:31 -0800 |
commit | a696da91469e117301eaca234ed968a4ba3481cc (patch) | |
tree | 3de216802e087745e7f34f22025f7c447308a46a | |
parent | 5a8174679716c3f1e392c4d9656821471bb2df47 (diff) | |
download | subsurface-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.cpp | 2 |
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); |