aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-06-30 07:49:56 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-07-03 14:30:46 -0700
commit4a7cf0e97020ff26d0f93c664183f8af262bf7d5 (patch)
tree1afd9451e41a4ccc78b91d2bb698242ba96c7c30 /desktop-widgets
parent9424760effd7ad4746fbb13ccc725054f336cfab (diff)
downloadsubsurface-4a7cf0e97020ff26d0f93c664183f8af262bf7d5.tar.gz
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 5c036915d..fd4fe8f82 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -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();
}