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
@ -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…
x
Reference in New Issue
Block a user