summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-24 09:03:56 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-24 09:03:56 -0700
commitf29f41ae9ea8b9c6217feab2cd97b165af843c2a (patch)
tree342534b9b0f6cd883f39386bce476a233f43b69f /qt-ui
parent95466cb245608a92d3e6005f2da577a613914336 (diff)
downloadsubsurface-f29f41ae9ea8b9c6217feab2cd97b165af843c2a.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 0 insertions, 4 deletions
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()