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 <github@ike.ch>
This commit is contained in:
Michael Keller 2024-09-09 12:53:13 +12:00 committed by Michael Keller
parent f585726283
commit 515f593a56

View file

@ -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()