diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-04-22 13:46:27 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-22 13:46:27 -0700 |
commit | 0bd02bf1f093835ed6cd14682a7900f738bb6736 (patch) | |
tree | 521d8fbefe62e2705f2143fbc610d5796fa2f14b | |
parent | ed09b35dcfb1a39b29df04d09a1c671416f27c7c (diff) | |
download | subsurface-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.cpp | 2 |
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(); } |