Dirk,

On 23.03.2016, at 15:52, Dirk Hohndel <[email protected]> wrote:

Since this was already pushed out, it has to be a second patch that fixes
things. Otherwise this would change a git repository that others have
pulled from and pulls wouldn't be 'fast forward' anymore.

here you go.

From 06af8ecaf41dcbd04e2d0d162c6ed8a1ba221b50 Mon Sep 17 00:00:00 2001
From: "Robert C. Helling" <[email protected]>
Date: Wed, 23 Mar 2016 16:59:18 +0100
Subject: [PATCH] When changing units from psi to bar first change value, then
 max
To: [email protected]

otherwise the max interferes with the value. Furthermore this increases
the max values a bit.

Signed-off-by: Robert C. Helling <[email protected]>
---
 desktop-widgets/diveplanner.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp
index f4c53d7..f84781e 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));
        }
 
-- 
2.5.4 (Apple Git-61)


Best
Robert

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to