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:
Anton Lundin 2014-12-07 23:32:07 +01:00 committed by Dirk Hohndel
parent 5a81746797
commit a696da9146

View file

@ -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);