aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-28 20:50:01 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-28 17:06:27 -0700
commitb601db30ada0d4956e2110b1cfec218b2ce2aded (patch)
tree827fd5e1524e931dda342d9463a7cf7295d8f7b2 /qt-ui
parentc3306c39f13519441ba2ebd1bbe068fc910e0592 (diff)
downloadsubsurface-b601db30ada0d4956e2110b1cfec218b2ce2aded.tar.gz
Fix edition of manually added dives.
This patch correctly sets the state of the planner to "NOTHING" after trying to edit a manually added dive. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index ec3c38996..f308292e2 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -883,6 +883,7 @@ void MainTab::rejectChanges()
// the user could have edited the location and then canceled the edit
// let's get the correct location back in view
MainWindow::instance()->globe()->centerOnCurrentDive();
+ DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::NOTHING);
}
#undef EDIT_TEXT2