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:
parent
07512cb2c8
commit
783844eb3d
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user