mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
New dive plan set salinity to current dive salinity if dive selected
This helps people who always use a std. salinity of e.g. 1020g/l. If they have a log with their dives open and plan a new dive they will have also for new planned dives the salinity set to their prefered value. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
16f330e6c9
commit
d470ef05e0
1 changed files with 2 additions and 0 deletions
|
@ -972,6 +972,8 @@ void MainWindow::on_actionDivePlanner_triggered()
|
|||
if (current_dive)
|
||||
divePlannerSettingsWidget()->setDiveMode(current_dive->dc.divemode);
|
||||
DivePictureModel::instance()->updateDivePictures();
|
||||
if (current_dive->salinity)
|
||||
divePlannerWidget()->setSalinity(current_dive->salinity);
|
||||
divePlannerWidget()->setReplanButton(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue