From e39063f6df269facaad1430229d8b330385f68ff Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 5 Mar 2020 23:10:44 +0100 Subject: undo: switch to affected dive on undo/redo of event-changes Select and make current the affected dive. And also switch to the divecomputer that was affected. Signed-off-by: Berthold Stoeger --- commands/command_event.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands/command_event.h') diff --git a/commands/command_event.h b/commands/command_event.h index 8e75dee6c..a363540d5 100644 --- a/commands/command_event.h +++ b/commands/command_event.h @@ -29,6 +29,8 @@ protected: // are probably not stable. struct dive *d; int dcNr; +private: + void updateDive(); }; class AddEventBase : public EventBase { -- cgit v1.2.3-70-g09d2