mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
5a81746797
commit
a696da9146
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue