mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove parameter to MainTab::enableEdition
All remaining callers were passing MANUALLY_ADDED_DIVE as a new mode, so we may just as well remove the parameter and thus simplify the logic. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
accf1fcc8f
commit
13d339451e
3 changed files with 6 additions and 6 deletions
|
|
@ -1767,13 +1767,13 @@ void MainWindow::editCurrentDive()
|
|||
graphics->setAddState();
|
||||
setApplicationState(ApplicationState::EditDive);
|
||||
DivePlannerPointsModel::instance()->loadFromDive(d);
|
||||
mainTab->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
|
||||
mainTab->enableEdition();
|
||||
} else if (defaultDC == "planned dive") {
|
||||
disableShortcuts();
|
||||
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::PLAN);
|
||||
setApplicationState(ApplicationState::EditPlannedDive);
|
||||
DivePlannerPointsModel::instance()->loadFromDive(d);
|
||||
mainTab->enableEdition(MainTab::MANUALLY_ADDED_DIVE);
|
||||
mainTab->enableEdition();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue