From b601db30ada0d4956e2110b1cfec218b2ce2aded Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 28 May 2014 20:50:01 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/maintab.cpp') 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 -- cgit v1.2.3-70-g09d2