summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-22 13:46:27 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-22 13:46:27 -0700
commit0bd02bf1f093835ed6cd14682a7900f738bb6736 (patch)
tree521d8fbefe62e2705f2143fbc610d5796fa2f14b
parented09b35dcfb1a39b29df04d09a1c671416f27c7c (diff)
downloadsubsurface-0bd02bf1f093835ed6cd14682a7900f738bb6736.tar.gz
Download from divecomputer: stop timer on error
If we run into an error during the download, stop the timer that triggers the update to the progressbar. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index a070c855d..1a3a0fda9 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -188,8 +188,8 @@ void DownloadFromDCWidget::updateState(states state)
// got an error
else if (state == ERROR) {
+ timer->stop();
QMessageBox::critical(this, TITLE_OR_TEXT(tr("Error"), this->thread->error), QMessageBox::Ok);
-
markChildrenAsEnabled();
ui.progressBar->hide();
}