mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue