summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2016-03-23 16:59:18 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-23 13:55:09 -0700
commit90bd1b0af7b7b1cb002806404594f8667ee3e314 (patch)
treee18c540d0c2491d7e6e2d05ad1b9a0f0b49afae4
parentfd10342b2495b17521ba4f27309168b9ae86ac5d (diff)
downloadsubsurface-90bd1b0af7b7b1cb002806404594f8667ee3e314.tar.gz
When changing units from psi to bar first change value, then max
otherwise the max interferes with the value. Furthermore this increases the max values a bit. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index c6bb555c0..09d10ca4f 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -450,12 +450,12 @@ void PlannerSettingsWidget::settingsChanged()
if(get_units()->pressure == units::BAR) {
ui.reserve_gas->setSuffix(tr("bar"));
ui.reserve_gas->setSingleStep(1);
- ui.reserve_gas->setMaximum(100);
ui.reserve_gas->setValue(prefs.reserve_gas / 1000);
+ ui.reserve_gas->setMaximum(300);
} else {
ui.reserve_gas->setSuffix(tr("psi"));
ui.reserve_gas->setSingleStep(10);
- ui.reserve_gas->setMaximum(1500);
+ ui.reserve_gas->setMaximum(5000);
ui.reserve_gas->setValue(mbar_to_PSI(prefs.reserve_gas));
}