Undo: implement invalidate-dive command

Connect command to context menu.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-12-12 23:07:17 +01:00 committed by Dirk Hohndel
parent 329641fdcd
commit 4e47cdfa2c
8 changed files with 43 additions and 21 deletions

View file

@ -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));