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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-05 23:10:44 +01:00
parent 48b4dc9c84
commit e39063f6df
2 changed files with 11 additions and 2 deletions

View file

@ -29,6 +29,8 @@ protected:
// are probably not stable.
struct dive *d;
int dcNr;
private:
void updateDive();
};
class AddEventBase : public EventBase {