From 13b8680b0ce2412608488fa4ee49f2bba0cd60d8 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Thu, 17 Jul 2014 09:16:52 +0200 Subject: Planner: Ascent/descent rates are stored in mm/s not in m/min So should be defaults. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index bf124614a..dddeac1d1 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -367,11 +367,11 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f) QSettings s; s.beginGroup("Planner"); - prefs.ascrate75 = s.value("ascrate75", 9).toInt(); - prefs.ascrate50 = s.value("ascrate50", 6).toInt(); - prefs.ascratestops = s.value("ascratestops", 6).toInt(); - prefs.ascratelast6m = s.value("ascratelast6m", 1).toInt(); - prefs.descrate = s.value("descrate", 18).toInt(); + prefs.ascrate75 = s.value("ascrate75", 9 * 1000.0 / 60.0).toInt(); + prefs.ascrate50 = s.value("ascrate50", 6 * 1000.0 / 60.0).toInt(); + prefs.ascratestops = s.value("ascratestops", 6 * 1000.0 / 60.0).toInt(); + prefs.ascratelast6m = s.value("ascratelast6m", 1 * 1000.0 / 60.0).toInt(); + prefs.descrate = s.value("descrate", 18 * 1000.0 / 60.0).toInt(); prefs.bottompo2 = s.value("bottompo2", 1400).toInt(); prefs.decopo2 = s.value("decopo2",1600).toInt(); prefs.doo2breaks = s.value("doo2breaks", false).toBool(); -- cgit v1.2.3-70-g09d2