aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2017-04-24 23:31:27 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-26 21:27:37 -0700
commit1ec0d43e63e5796247e0f55963eea06ecf039c4f (patch)
tree3de47ff7a44342d326079d836aca58d6627f7450 /desktop-widgets
parent0f80d07e4bf9fa19aaff8f5cf853873eb146370f (diff)
downloadsubsurface-1ec0d43e63e5796247e0f55963eea06ecf039c4f.tar.gz
Always set min/max sac in statistics tab
It just looks weird when they aren't set, just because you only selected one dive. Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveStatistics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveStatistics.cpp b/desktop-widgets/tab-widgets/TabDiveStatistics.cpp
index 6f8c207b1..6a7edcee4 100644
--- a/desktop-widgets/tab-widgets/TabDiveStatistics.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveStatistics.cpp
@@ -51,11 +51,11 @@ void TabDiveStatistics::updateData()
// ui->depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, true));
- if (amount_selected > 1 && stats_selection.max_sac.mliter)
+ if (stats_selection.max_sac.mliter)
ui->sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, true).append(tr("/min")));
else
ui->sacLimits->setMaximum("");
- if (amount_selected > 1 && stats_selection.min_sac.mliter)
+ if (stats_selection.min_sac.mliter)
ui->sacLimits->setMinimum(get_volume_string(stats_selection.min_sac, true).append(tr("/min")));
else
ui->sacLimits->setMinimum("");