From f2ecb6d0ebb9183fad9fd2d33e1cb7dbd6a712d7 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 27 May 2014 16:12:09 -0700 Subject: Fix manually adding dive I'm sure canceling the plan when saving an added dive made sense at some point for some reason. Right now it makes things crash, so let's not do it. Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index dd784a553..f004737af 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -719,7 +719,6 @@ void MainTab::acceptChanges() current_dive->number = 1; else if (selected_dive == dive_table.nr - 1 && get_dive(dive_table.nr - 2)->number) current_dive->number = get_dive(dive_table.nr - 2)->number + 1; - DivePlannerPointsModel::instance()->cancelPlan(); MainWindow::instance()->showProfile(); mark_divelist_changed(true); DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::NOTHING); -- cgit v1.2.3-70-g09d2