diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-27 16:12:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-27 16:12:09 -0700 |
commit | f2ecb6d0ebb9183fad9fd2d33e1cb7dbd6a712d7 (patch) | |
tree | 2ab830caa93948e7cf51db2ca3686e8c5e903884 /qt-ui | |
parent | b9e9eeb441762e9bcc859fbd0243d30e3685dd28 (diff) | |
download | subsurface-f2ecb6d0ebb9183fad9fd2d33e1cb7dbd6a712d7.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/maintab.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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); |