From 4e47cdfa2c611e0e02f46b84d76d29f1fab74e20 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 12 Dec 2019 23:07:17 +0100 Subject: Undo: implement invalidate-dive command Connect command to context menu. Signed-off-by: Berthold Stoeger --- commands/command.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'commands/command.cpp') 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)); -- cgit v1.2.3-70-g09d2