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
|
@ -648,6 +648,11 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||
}
|
||||
}
|
||||
|
||||
void ProfileWidget2::recalcCeiling()
|
||||
{
|
||||
diveCeiling->recalc();
|
||||
}
|
||||
|
||||
void ProfileWidget2::settingsChanged()
|
||||
{
|
||||
// if we are showing calculated ceilings then we have to replot()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue