diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-26 11:23:50 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-26 11:34:02 -0700 |
commit | 6195c139dcf8f803c1a29a50a575a75cfe266ec2 (patch) | |
tree | 4d131b8125218a16643d4a77b714784d878f9e4e /qt-ui/diveplanner.cpp | |
parent | 47226912b64f126f85ed4f65d8df010b6194b313 (diff) | |
download | subsurface-6195c139dcf8f803c1a29a50a575a75cfe266ec2.tar.gz |
Fix planner gas consumption
We need to start out with valid SAC rates in the diveplan.
Thanks to Gaetan for finding this and suggesting a different fix - this
seems cleaner to me.
Reported-by: Gaetan Bisson <bisson@archlinux.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index ebaf6f5d1..f0ef56506 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -392,6 +392,8 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f) prefs.drop_stone_mode = s.value("drop_stone_mode", prefs.drop_stone_mode).toBool(); prefs.bottomsac = s.value("bottomsac", prefs.bottomsac).toInt(); prefs.decosac = s.value("decosac", prefs.decosac).toInt(); + plannerModel->getDiveplan().bottomsac = prefs.bottomsac; + plannerModel->getDiveplan().decosac = prefs.decosac; s.endGroup(); updateUnitsUI(); |