summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-07-17 09:16:52 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-17 07:47:04 -0700
commit13b8680b0ce2412608488fa4ee49f2bba0cd60d8 (patch)
tree43b1486979e22a6176dc3cccaf18c23a861e0032
parent8fae0b6af88ccfb7c817448dcdb366b0e40bcf76 (diff)
downloadsubsurface-13b8680b0ce2412608488fa4ee49f2bba0cd60d8.tar.gz
Planner: Ascent/descent rates are stored in mm/s not in m/min
So should be defaults. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/diveplanner.cpp10
1 files changed, 5 insertions, 5 deletions
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();