summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2016-06-13 23:16:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-06-13 22:17:49 -0700
commit783844eb3d1c659df974cecd77548fc1e3550742 (patch)
treef3b3be20e0a013875251297b1524b81b074000bb /desktop-widgets
parent07512cb2c8ed6e6878ddb29e44219cb5d71eaf59 (diff)
downloadsubsurface-783844eb3d1c659df974cecd77548fc1e3550742.tar.gz
Set date and time when replanning a dive
Otherwise we pretend the dive is now. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 15f34e616..d4c2317f1 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -913,6 +913,7 @@ void MainWindow::on_actionReplanDive_triggered()
graphics()->clearHandlers();
setApplicationState("PlanDive");
divePlannerWidget()->setReplanButton(true);
+ divePlannerWidget()->setupStartTime(QDateTime::fromMSecsSinceEpoch(1000 * current_dive->when, Qt::UTC));
DivePlannerPointsModel::instance()->loadFromDive(current_dive);
reset_cylinders(&displayed_dive, true);
}