diff options
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp index a481b56c1..72ba7933d 100644 --- a/qt-ui/downloadfromdivecomputer.cpp +++ b/qt-ui/downloadfromdivecomputer.cpp @@ -68,14 +68,12 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget* parent, Qt::WindowFlags f) : timer->setInterval(200); connect(timer, SIGNAL(timeout()), this, SLOT(updateProgressBar())); - updateState(INITIAL); } void DownloadFromDCWidget::runDialog() { updateState(INITIAL); - exec(); } @@ -324,13 +322,10 @@ static QString str_error(const char *fmt, ...) void DownloadThread::run() { const char *error; - if (!strcmp(data->vendor, "Uemis")) error = do_uemis_import(data->devname, data->force_download); else error = do_libdivecomputer_import(data); - - if (error) { + if (error) this->error = str_error(error, data->devname, data->vendor, data->product); - } } |