diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-10-21 16:39:35 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-10-30 21:45:56 +0100 |
commit | d470ef05e026adf6bf73753774f5be92b96f1ec7 (patch) | |
tree | 6a9e0b3534417dd02cd40f430c196e275912f028 | |
parent | 16f330e6c94f112b56264d6705402c89ed6178a4 (diff) | |
download | subsurface-d470ef05e026adf6bf73753774f5be92b96f1ec7.tar.gz |
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>
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 9098d868a..95495b663 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -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); } |