mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: rename ADD state to EDIT state
The ADD state is not used for adding dives since adding dives was made undoable. Therefore, rename it to EDIT state, since that is what it is used for. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9424760eff
commit
4a7cf0e970
3 changed files with 20 additions and 20 deletions
|
@ -1523,7 +1523,7 @@ void MainWindow::editCurrentDive()
|
|||
copy_dive(current_dive, &displayed_dive); // Work on a copy of the dive
|
||||
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::ADD);
|
||||
DivePlannerPointsModel::instance()->loadFromDive(&displayed_dive);
|
||||
graphics->setAddState(&displayed_dive, 0);
|
||||
graphics->setEditState(&displayed_dive, 0);
|
||||
setApplicationState(ApplicationState::EditDive);
|
||||
mainTab->enableEdition();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue