diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-10 22:08:42 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-10 22:08:42 -0800 |
commit | 82b2b709bc4b6733d2f67b8d2bc0943daf80c732 (patch) | |
tree | 8b1b61c36a623265807b92f913af496e6810d0ef /qt-mobile | |
parent | 0d9892645caa601d87b8c8c4578ad7740d593701 (diff) | |
download | subsurface-82b2b709bc4b6733d2f67b8d2bc0943daf80c732.tar.gz |
QML UI: Store the dive duration in dive and (fake) divecomputer
This is needed so that our heuristics for fixing up dives don't mess up the
data.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index 02e451692..8635df4dc 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -419,7 +419,7 @@ QString QMLManager::commitChanges(QString diveId, QString date, QString location h = r5.cap(1).toInt(); m = r5.cap(2).toInt(); } - d->duration.seconds = h * 3600 + m * 60 + s; + d->dc.duration.seconds = d->duration.seconds = h * 3600 + m * 60 + s; } if (get_depth_string(d->maxdepth.mm, true, true) != depth) { diveChanged = true; |