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.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 6e6859e2f..c84766038 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -470,6 +470,11 @@ void MainWindow::on_actionAddDive_triggered()
if(!plannerStateClean())
return;
+ if (dive_list()->selectedTrips().count() >= 1){
+ dive_list()->rememberSelection();
+ dive_list()->clearSelection();
+ }
+
ui.ListWidget->endSearch();
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);