summaryrefslogtreecommitdiffstats
path: root/commands/command.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-12-12 23:07:17 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-20 15:20:44 -0700
commit4e47cdfa2c611e0e02f46b84d76d29f1fab74e20 (patch)
treeec7de6591f918f7fb6b73f2b89f41d4b9ee1a1d1 /commands/command.cpp
parent329641fdcdf7759d430aea2d2a115550bc5caf62 (diff)
downloadsubsurface-4e47cdfa2c611e0e02f46b84d76d29f1fab74e20.tar.gz
Undo: implement invalidate-dive command
Connect command to context menu. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command.cpp')
-rw-r--r--commands/command.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/command.cpp b/commands/command.cpp
index fe55b20d6..1fb968778 100644
--- a/commands/command.cpp
+++ b/commands/command.cpp
@@ -168,6 +168,11 @@ int editMode(int index, int newValue, bool currentDiveOnly)
return execute_edit(new EditMode(index, newValue, currentDiveOnly));
}
+int editInvalid(int newValue, bool currentDiveOnly)
+{
+ return execute_edit(new EditInvalid(newValue, currentDiveOnly));
+}
+
int editSuit(const QString &newValue, bool currentDiveOnly)
{
return execute_edit(new EditSuit(newValue, currentDiveOnly));