From 936f057ddc963d9ea0e60c94c261275deca85458 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 29 Jul 2014 12:50:50 -0700 Subject: Retain the start time when creating plan from dive We need to make sure that the start time is set before we start adding points. Fixes #661 Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 62c4e56a4..1841f8529 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -109,6 +109,7 @@ void DivePlannerPointsModel::loadFromDive(dive *d) CylindersModel::instance()->updateDive(); duration_t lasttime = {}; struct gasmix gas; + diveplan.when = d->when; for (int i = 0; i < d->dc.samples - 1; i++) { const sample &s = d->dc.sample[i]; if (s.time.seconds == 0) -- cgit v1.2.3-70-g09d2