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>
This commit is contained in:
Dirk Hohndel 2016-01-10 22:08:42 -08:00
parent 0d9892645c
commit 82b2b709bc

View file

@ -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;