diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-30 15:51:34 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-03 20:55:58 -0800 |
commit | a6fa6cdb410514ba61b8886d3acadd4500c1d86e (patch) | |
tree | 017877ddaa99ce88023e2c8a07bd222ad19b00b9 /commands/command.h | |
parent | 7c024f12d2123e08c272cefb2991623bc1da107a (diff) | |
download | subsurface-a6fa6cdb410514ba61b8886d3acadd4500c1d86e.tar.gz |
Undo: make profile-editing undoable
Recently, undo of dive-replanning was introduced. Therefore,
it appears logical to do the same thing for editing of the
profile of manually added dives.
For now, use the same undo-command, just change the displayed
text from "replan dive" to "edit profile". Move the fixup dive
call into the undo-command.
Eventually, every action on the profile should be made undoable.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'commands/command.h')
-rw-r--r-- | commands/command.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/command.h b/commands/command.h index 1b7e65394..6446b32fd 100644 --- a/commands/command.h +++ b/commands/command.h @@ -80,6 +80,7 @@ int editBuddies(const QStringList &newList, bool currentDiveOnly); int editDiveMaster(const QStringList &newList, bool currentDiveOnly); void pasteDives(const dive *d, dive_components what); void replanDive(dive *d); // dive computer(s) and cylinder(s) will be reset! +void editProfile(dive *d); // dive computer(s) and cylinder(s) will be reset! // 5) Trip editing commands |