From f29f41ae9ea8b9c6217feab2cd97b165af843c2a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 24 Jul 2014 09:03:56 -0700 Subject: Planner: fix start time handling We setup the startTime for the dive plan in too many places... but never actually copied it into the planned dive. Fixes #640 Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 4f3655b12..d1d4abdd0 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -69,9 +69,6 @@ void DivePlannerPointsModel::createSimpleDive() { struct gasmix gas = { 0 }; - // set the start time of the plan - diveplan.when = displayed_dive.when; - if (isPlanner()) // let's use the gas from the first cylinder gas = displayed_dive.cylinder[0].gasmix; @@ -666,7 +663,6 @@ int DivePlannerPointsModel::rowCount(const QModelIndex &parent) const DivePlannerPointsModel::DivePlannerPointsModel(QObject *parent) : QAbstractTableModel(parent), mode(NOTHING) { memset(&diveplan, 0, sizeof(diveplan)); - startTime = QDateTime::currentDateTimeUtc(); } DivePlannerPointsModel *DivePlannerPointsModel::instance() -- cgit v1.2.3-70-g09d2