[PATCH 1/2] Make sure the device open error reaches the user
Anton Lundin
glance at acc.umu.se
Sun Dec 7 14:32:07 PST 2014
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 at acc.umu.se>
---
configuredivecomputerthreads.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index 82a6778..209794b 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);
--
2.1.0
More information about the subsurface
mailing list