summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/diveplanner.cpp
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 09:34:49 -0700
commite93c99c8bc9c7ebcc39aa8be16476a794a845636 (patch)
treeaa63af886a1f7248ad3c98f48d60ca01b512ec97 /desktop-widgets/diveplanner.cpp
parent0ae5f6faae985f6708718c7a50582c7efd3e315b (diff)
downloadsubsurface-e93c99c8bc9c7ebcc39aa8be16476a794a845636.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>
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r--desktop-widgets/diveplanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp
index f4c53d7e8..f84781e96 100644
--- a/desktop-widgets/diveplanner.cpp
+++ b/desktop-widgets/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));
}