aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-19 22:10:27 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-19 22:10:27 -0500
commit1620f7ec0ca35ddb7888607782ec453af58e89e3 (patch)
treef88f544e12406b94f9a5138ed643b600591f1321 /qt-ui/diveplanner.cpp
parent642ad1e0fe292895d65765dc4ac7b5df9fe42ca8 (diff)
downloadsubsurface-1620f7ec0ca35ddb7888607782ec453af58e89e3.tar.gz
Planner: make sure start time is reflected in diveplan and displayed_dive
Fixes #709 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 8e5229a26..589a2d1c2 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -832,6 +832,7 @@ void DivePlannerPointsModel::setStartDate(const QDate &date)
{
startTime.setDate(date);
diveplan.when = startTime.toTime_t();
+ displayed_dive.when = diveplan.when;
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
}
@@ -839,6 +840,7 @@ void DivePlannerPointsModel::setStartTime(const QTime &t)
{
startTime.setTime(t);
diveplan.when = startTime.toTime_t();
+ displayed_dive.when = diveplan.when;
emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1));
}