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>
This commit is contained in:
Robert C. Helling 2016-06-13 23:16:21 +02:00 committed by Dirk Hohndel
parent 07512cb2c8
commit 783844eb3d

View file

@ -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);
}