From 7b730602c6ac92c561c5ccb6a0dbf725a70fa963 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 6 Oct 2019 20:54:25 +0200 Subject: Undo: implement ReplanDive command Implement an undo command that overwrites the dive-computers and cylinders of the current dive with a given dive. This will be used when replanning a dive. Signed-off-by: Berthold Stoeger --- desktop-widgets/command.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop-widgets/command.cpp') diff --git a/desktop-widgets/command.cpp b/desktop-widgets/command.cpp index cf8aeb7f9..4257324ec 100644 --- a/desktop-widgets/command.cpp +++ b/desktop-widgets/command.cpp @@ -238,6 +238,11 @@ void pasteDives(const dive *d, dive_components what) execute(new PasteDives(d, what)); } +void replanDive(dive *d) +{ + execute(new ReplanDive(d)); +} + // Trip editing related commands void editTripLocation(dive_trip *trip, const QString &s) { -- cgit v1.3.1