mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
f585726283
commit
515f593a56
1 changed files with 2 additions and 2 deletions
|
@ -594,7 +594,7 @@ void PlannerWidgets::preparePlanDive(const dive *currentDive, int currentDcNr)
|
||||||
plannerWidget.setSalinity(SEAWATER_SALINITY);
|
plannerWidget.setSalinity(SEAWATER_SALINITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
setDiveMode(getDiveMode());
|
plannerWidget.setDiveMode(getDiveMode());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlannerWidgets::planDive()
|
void PlannerWidgets::planDive()
|
||||||
|
@ -611,7 +611,7 @@ void PlannerWidgets::prepareReplanDive(const dive *currentDive, int currentDcNr)
|
||||||
copy_dive(currentDive, planned_dive.get());
|
copy_dive(currentDive, planned_dive.get());
|
||||||
dcNr = currentDcNr;
|
dcNr = currentDcNr;
|
||||||
|
|
||||||
setDiveMode(getDiveMode());
|
plannerWidget.setDiveMode(getDiveMode());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlannerWidgets::replanDive()
|
void PlannerWidgets::replanDive()
|
||||||
|
|
Loading…
Reference in a new issue