From a6fa6cdb410514ba61b8886d3acadd4500c1d86e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 30 Nov 2019 15:51:34 +0100 Subject: 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 --- commands/command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'commands/command.h') 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 -- cgit v1.2.3-70-g09d2