mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
core: print the correct message code for download failures
We filled in the missing information and then printed the wrong string. This fixes that and also makes the strings slightly easier to understand. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
05a00f31e9
commit
b7619553fd
1 changed files with 5 additions and 3 deletions
|
@ -49,10 +49,12 @@ void DownloadThread::run()
|
||||||
errorText = do_uemis_import(internalData);
|
errorText = do_uemis_import(internalData);
|
||||||
else
|
else
|
||||||
errorText = do_libdivecomputer_import(internalData);
|
errorText = do_libdivecomputer_import(internalData);
|
||||||
if (errorText)
|
if (errorText) {
|
||||||
error = str_error(errorText, internalData->devname, internalData->vendor, internalData->product);
|
error = str_error(errorText, internalData->devname, internalData->vendor, internalData->product);
|
||||||
|
qDebug() << "Finishing download thread:" << error;
|
||||||
qDebug() << "Finishing the thread" << errorText << "dives downloaded" << downloadTable.nr;
|
} else {
|
||||||
|
qDebug() << "Finishing download thread:" << downloadTable.nr << "dives downloaded";
|
||||||
|
}
|
||||||
auto dcs = SettingsObjectWrapper::instance()->dive_computer_settings;
|
auto dcs = SettingsObjectWrapper::instance()->dive_computer_settings;
|
||||||
dcs->setVendor(internalData->vendor);
|
dcs->setVendor(internalData->vendor);
|
||||||
dcs->setProduct(internalData->product);
|
dcs->setProduct(internalData->product);
|
||||||
|
|
Loading…
Reference in a new issue