summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 5bba49c57..b6faa3dff 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -986,6 +986,11 @@ void MainWindow::on_actionAddDive_triggered()
DivePlannerPointsModel::instance()->createSimpleDive();
configureToolbar();
graphics()->plotDive();
+ fixup_dc_duration(&displayed_dive.dc);
+ displayed_dive.duration = displayed_dive.dc.duration;
+
+ // now that we have the correct depth and duration, update the dive info
+ information()->updateDepthDuration();
}
void MainWindow::on_actionEditDive_triggered()