mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:13:24 +00:00
QML UI: recalculate derived information after editing dive
For example, when changing the cylinder, the SAC rate wasn't updated. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
24a798a5c3
commit
dcc308e929
1 changed files with 1 additions and 0 deletions
|
@ -1093,6 +1093,7 @@ void QMLManager::commitChanges(QString diveId, QString date, QString location, Q
|
|||
d->meandepth.mm = d->dc.meandepth.mm = 0;
|
||||
d->dc = *fake_dc(&d->dc, true);
|
||||
}
|
||||
fixup_dive(d);
|
||||
DiveListModel::instance()->updateDive(modelIdx, d);
|
||||
invalidate_dive_cache(d);
|
||||
mark_divelist_changed(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue