From 1ec0d43e63e5796247e0f55963eea06ecf039c4f Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 24 Apr 2017 23:31:27 +0200 Subject: [PATCH] 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 --- desktop-widgets/tab-widgets/TabDiveStatistics.cpp | 4 ++-- 1 file 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("");