Changeset 78059d4 in subsurface


Ignore:
Timestamp:
Feb 14, 2017, 7:29:52 AM (5 days ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
83aff9f
Parents:
78150a4
git-author:
Anton Lundin <glance@…> (02/13/17 13:16:03)
git-committer:
Dirk Hohndel <dirk@…> (02/14/17 07:29:52)
Message:

Update altitude limits on unit change

The limits set in diveplanner.ui is intended for the unit set there,
meters. If we move between units we need to update the limits to.

This fixes #201

Signed-off-by: Anton Lundin <glance@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/diveplanner.cpp

    r9357341 r78059d4  
    197197        if (get_units()->length == units::FEET) {
    198198                ui.atmHeight->setSuffix("ft");
     199                ui.atmHeight->setMinimum(-300);
     200                ui.atmHeight->setMaximum(10000);
    199201        } else {
    200202                ui.atmHeight->setSuffix(("m"));
     203                ui.atmHeight->setMinimum(-100);
     204                ui.atmHeight->setMaximum(3000);
    201205        }
    202206        ui.atmHeight->blockSignals(true);
Note: See TracChangeset for help on using the changeset viewer.