mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
undo: add undo command for dive-mode switch
This basically copies the bookmark code, with the addition that the dive mode is recorded in the text of the undo command. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7018783f64
commit
33fb6461fb
5 changed files with 19 additions and 4 deletions
|
|
@ -334,4 +334,9 @@ void addEventBookmark(struct dive *d, int dcNr, int seconds)
|
|||
execute(new AddEventBookmark(d, dcNr, seconds));
|
||||
}
|
||||
|
||||
void addEventDivemodeSwitch(struct dive *d, int dcNr, int seconds, int divemode)
|
||||
{
|
||||
execute(new AddEventDivemodeSwitch(d, dcNr, seconds, divemode));
|
||||
}
|
||||
|
||||
} // namespace Command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue