aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-28 04:55:00 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-28 10:09:44 -0700
commit424d38e0c122308c068b3b67d51ad35bd5dcc403 (patch)
treee94b52ea1ea8e53919414c7b4aedeeeb8cece00b /qt-ui/mainwindow.cpp
parentb08969ac3392798b5e6ae37982b51e45d8cffaf1 (diff)
downloadsubsurface-424d38e0c122308c068b3b67d51ad35bd5dcc403.tar.gz
Dive add: remove duplicate code
This is already done when we create the fake dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 50172fe47..f2a2276be 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -428,8 +428,6 @@ void MainWindow::on_actionAddDive_triggered()
if(!plannerStateClean())
return;
- dive_list()->rememberSelection();
- dive_list()->unselectDives();
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);
createFakeDiveForAddAndPlan();