mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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>
This commit is contained in:
parent
c3306c39f1
commit
b601db30ad
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue