From 515f593a56064f6b287eca23b12ad2d75a59138b Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Mon, 9 Sep 2024 12:53:13 +1200 Subject: [PATCH] Planner: Start with Correct Dive Mode. Fix a bug introduced in #4245, causing an incorrect dive mode to be selected when starting the dive planner from a CCR dive. Signed-off-by: Michael Keller --- 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 1142e5312..ebea114ad 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -594,7 +594,7 @@ void PlannerWidgets::preparePlanDive(const dive *currentDive, int currentDcNr) plannerWidget.setSalinity(SEAWATER_SALINITY); } - setDiveMode(getDiveMode()); + plannerWidget.setDiveMode(getDiveMode()); } void PlannerWidgets::planDive() @@ -611,7 +611,7 @@ void PlannerWidgets::prepareReplanDive(const dive *currentDive, int currentDcNr) copy_dive(currentDive, planned_dive.get()); dcNr = currentDcNr; - setDiveMode(getDiveMode()); + plannerWidget.setDiveMode(getDiveMode()); } void PlannerWidgets::replanDive()