From 82b2b709bc4b6733d2f67b8d2bc0943daf80c732 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 10 Jan 2016 22:08:42 -0800 Subject: 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 --- qt-mobile/qmlmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2