mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Update ceiling when changing dive mode
Without this patch, the user effectively cannot change the dive mode as any change is overwritten by replot copying current_dive over displayed_dive. The way out is not to call replot but only update the deco ceiling directly. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c70ba77199
commit
1e45858ee6
3 changed files with 7 additions and 1 deletions
|
@ -1018,7 +1018,7 @@ void MainTab::divetype_Changed(int index)
|
|||
displayed_dive.dc.divemode = (enum dive_comp_type) index;
|
||||
update_setpoint_events(&displayed_dive.dc);
|
||||
markChangedWidget(ui.DiveType);
|
||||
MainWindow::instance()->graphics()->replot();
|
||||
MainWindow::instance()->graphics()->recalcCeiling();
|
||||
}
|
||||
|
||||
void MainTab::on_watertemp_textChanged(const QString &text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue