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>
This commit is contained in:
Anton Lundin 2017-04-24 23:31:27 +02:00 committed by Dirk Hohndel
parent 0f80d07e4b
commit 1ec0d43e63

View file

@ -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("");