summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index ff932d31b..6cf7160b7 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -397,6 +397,15 @@ void MainWindow::removeFakeDiveForAddAndPlan()
delete_single_dive(idx);
}
+void MainWindow::planCanceled()
+{
+ removeFakeDiveForAddAndPlan();
+ showProfile();
+ dive_list()->restoreSelection();
+ dive_list()->reload(DiveTripModel::CURRENT);
+ refreshDisplay();
+}
+
void MainWindow::on_actionDivePlanner_triggered()
{
if(!plannerStateClean())