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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-10-06 20:54:25 +02:00 committed by Dirk Hohndel
parent 6a6b992a77
commit 7b730602c6
4 changed files with 96 additions and 1 deletions

View file

@ -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)
{