aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-22 13:55:43 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-22 13:55:46 -0700
commitd82e200d3583f86cec17cd858e54c46b35fd639d (patch)
treec9f4f11980acc8e2cca4478f3a5af76144eb323b /desktop-widgets
parent82d37e7451b4e7a11974f840cc4acdab4e389d76 (diff)
downloadsubsurface-d82e200d3583f86cec17cd858e54c46b35fd639d.tar.gz
Download from divecomputer: reset progress bar fraction
Otherwise when retrying, the progress bar might already be reset, but its text might still show 100%. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index 30df77581..cf16271b0 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -194,6 +194,7 @@ void DownloadFromDCWidget::updateState(states state)
else if (state == DOWNLOADING) {
timer->start();
ui.progressBar->setValue(0);
+ progress_bar_fraction = 0.0;
updateProgressBar();
ui.progressBar->show();
markChildrenAsDisabled();