diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-12-12 23:07:17 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-20 15:20:44 -0700 |
commit | 4e47cdfa2c611e0e02f46b84d76d29f1fab74e20 (patch) | |
tree | ec7de6591f918f7fb6b73f2b89f41d4b9ee1a1d1 /commands/command.cpp | |
parent | 329641fdcdf7759d430aea2d2a115550bc5caf62 (diff) | |
download | subsurface-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.cpp | 5 |
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)); |