aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-17 14:49:37 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-17 14:49:37 -0700
commit605400a029160f9089840e65977ecebecba4b2f2 (patch)
tree1ecacd90bad2a2cf5f227a4e54def8d1592b0e0f
parent731d9dc9bdf967ecc3d544de62ced6c3c469f6fa (diff)
downloadsubsurface-605400a029160f9089840e65977ecebecba4b2f2.tar.gz
DC download: don't clear message if no dives downloaded
Otherwise the text telling the user that no new dives were found will be deleted right away. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index 74501dcdb..2601c6f19 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -165,7 +165,8 @@ void DownloadFromDCWidget::updateState(states state)
markChildrenAsEnabled();
progress_bar_text = "";
} else {
- progress_bar_text = "";
+ if (downloadTable.nr != 0)
+ progress_bar_text = "";
ui.progressBar->setValue(100);
markChildrenAsEnabled();
}