diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-04-15 10:05:41 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-04-15 10:05:41 -0700 |
commit | dcc308e929b1ecec38627ac104af211b3a44f05e (patch) | |
tree | 6e4d1fd1a2ebacd1f1ef105c46b7a9ab7404aee9 | |
parent | 24a798a5c314cdc1b3d369cfa296c4e3c8a14867 (diff) | |
download | subsurface-dcc308e929b1ecec38627ac104af211b3a44f05e.tar.gz |
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>
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 19cc3f4c4..bd8ea29a3 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -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); |