summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefDivePlanner.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2019-01-10 21:18:53 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-13 15:02:07 -0800
commit2c794348c1060c8f6ce55c598c0a20690c4967f2 (patch)
treef5a47767117dd43ee20a878c7132b944e2609682 /core/settings/qPrefDivePlanner.cpp
parent7f2c7aa7dee10d419fe3ce208d6a36cc1e93b580 (diff)
downloadsubsurface-2c794348c1060c8f6ce55c598c0a20690c4967f2.tar.gz
Planner: Add checkbox to force OC bailout
This adds a checkbox for rebreather modes of the planner that force the ascent to be in OC mode. Before, one had to add a one minute last segment with the mode change but this is not practical when manually searching for the maximal bottom time given gas reserves. Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/settings/qPrefDivePlanner.cpp')
-rw-r--r--core/settings/qPrefDivePlanner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/settings/qPrefDivePlanner.cpp b/core/settings/qPrefDivePlanner.cpp
index ce15a081e..04a2ba7e7 100644
--- a/core/settings/qPrefDivePlanner.cpp
+++ b/core/settings/qPrefDivePlanner.cpp
@@ -34,6 +34,7 @@ void qPrefDivePlanner::loadSync(bool doSync)
disk_display_transitions(doSync);
disk_display_variations(doSync);
disk_doo2breaks(doSync);
+ disk_dobailout(doSync);
disk_drop_stone_mode(doSync);
disk_last_stop(doSync);
disk_min_switch_duration(doSync);
@@ -74,6 +75,7 @@ HANDLE_PREFERENCE_BOOL(DivePlanner, "display_transitions", display_transitions);
HANDLE_PREFERENCE_BOOL(DivePlanner, "display_variations", display_variations);
HANDLE_PREFERENCE_BOOL(DivePlanner, "doo2breaks", doo2breaks);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "dobailbout", dobailout);
HANDLE_PREFERENCE_BOOL(DivePlanner, "drop_stone_mode", drop_stone_mode);