mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0d9892645c
commit
82b2b709bc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue