summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index 3a6cb4237..d32112224 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -421,12 +421,12 @@ static QString str_error(const char *fmt, ...)
void DownloadThread::run()
{
- const char *error;
+ const char *errorText;
import_thread_cancelled = false;
if (!strcmp(data->vendor, "Uemis"))
- error = do_uemis_import(data->devname, data->force_download);
+ errorText = do_uemis_import(data->devname, data->force_download);
else
- error = do_libdivecomputer_import(data);
- if (error)
- this->error = str_error(error, data->devname, data->vendor, data->product);
+ errorText = do_libdivecomputer_import(data);
+ if (errorText)
+ error = str_error(errorText, data->devname, data->vendor, data->product);
}