Changeset 1ec0d43 in subsurface


Ignore:
Timestamp:
Apr 26, 2017, 9:27:37 PM (4 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
cd27c1c
Parents:
0f80d07
git-author:
Anton Lundin <glance@…> (04/24/17 14:31:27)
git-committer:
Dirk Hohndel <dirk@…> (04/26/17 21:27:37)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/tab-widgets/TabDiveStatistics.cpp

    r1fc4fba r1ec0d43  
    5252
    5353
    54         if (amount_selected > 1 && stats_selection.max_sac.mliter)
     54        if (stats_selection.max_sac.mliter)
    5555                ui->sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, true).append(tr("/min")));
    5656        else
    5757                ui->sacLimits->setMaximum("");
    58         if (amount_selected > 1 && stats_selection.min_sac.mliter)
     58        if (stats_selection.min_sac.mliter)
    5959                ui->sacLimits->setMinimum(get_volume_string(stats_selection.min_sac, true).append(tr("/min")));
    6060        else
Note: See TracChangeset for help on using the changeset viewer.