From 0bd02bf1f093835ed6cd14682a7900f738bb6736 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 22 Apr 2017 13:46:27 -0700 Subject: 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 --- desktop-widgets/downloadfromdivecomputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets/downloadfromdivecomputer.cpp') 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(); } -- cgit v1.2.3-70-g09d2