mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Preserve dive mode when planning a dive
Data such as cilinders and used gasses are populated fromn the currently selected dive when starting the planner. It is more logical to use the dive mode (OC, CCR, pSCR) of the currently selected dive as well. This commits changes this. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
9b8fc9f64a
commit
89b914e47d
3 changed files with 9 additions and 0 deletions
|
@ -186,6 +186,11 @@ void DivePlannerWidget::setSurfacePressure(int surface_pressure)
|
|||
ui.ATMPressure->setValue(surface_pressure);
|
||||
}
|
||||
|
||||
void PlannerSettingsWidget::setDiveMode(int mode)
|
||||
{
|
||||
ui.rebreathermode->setCurrentIndex(mode);
|
||||
}
|
||||
|
||||
void DivePlannerWidget::setSalinity(int salinity)
|
||||
{
|
||||
ui.salinity->setValue(salinity / 10000.0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue