diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/downloadfromdcthread.cpp | 2 | ||||
-rw-r--r-- | core/libdivecomputer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp index b6b5d9191..70e4aac7d 100644 --- a/core/downloadfromdcthread.cpp +++ b/core/downloadfromdcthread.cpp @@ -91,6 +91,8 @@ void DownloadThread::run() error = str_error(errorText, internalData->devname, internalData->vendor, internalData->product); qDebug() << "Finishing download thread:" << error; } else { + if (!downloadTable.nr) + error = tr("No new dives downloaded from dive computer"); qDebug() << "Finishing download thread:" << downloadTable.nr << "dives downloaded"; } qPrefDiveComputer::set_vendor(internalData->vendor); diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index fcc774425..e6c74f115 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -1422,8 +1422,6 @@ const char *do_libdivecomputer_import(device_data_t *data) data->device = NULL; dc_iostream_close(data->iostream); data->iostream = NULL; - if (!downloadTable.nr) - dev_info(data, translate("gettextFromC", "No new dives downloaded from dive computer")); } dc_context_free(data->context); |