mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: Properly initialize salinity
When the dive has no explicity salinity, our conversion between pressure and depth assumed salt water. Make this explicity by using the corresponding macro. When the planner starts and no salinity is set explicity, set the water type chooser to salt water to reflect our default assumption. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
f5ba42e933
commit
7e82205e9b
3 changed files with 4 additions and 1 deletions
|
@ -895,6 +895,8 @@ void MainWindow::on_actionDivePlanner_triggered()
|
|||
divePlannerSettingsWidget->setBailoutVisibility(current_dive->dc.divemode);
|
||||
if (current_dive->salinity)
|
||||
divePlannerWidget->setSalinity(current_dive->salinity);
|
||||
else // No salinity means salt water
|
||||
divePlannerWidget->setSalinity(SEAWATER_SALINITY);
|
||||
}
|
||||
divePlannerWidget->setReplanButton(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue