summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-10 22:08:42 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-10 22:08:42 -0800
commit82b2b709bc4b6733d2f67b8d2bc0943daf80c732 (patch)
tree8b1b61c36a623265807b92f913af496e6810d0ef /qt-mobile
parent0d9892645caa601d87b8c8c4578ad7740d593701 (diff)
downloadsubsurface-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.cpp2
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;