mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
6a6b992a77
commit
7b730602c6
4 changed files with 96 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue