mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/undo: create EditDive command
Command that just swaps two dives. This is rather complex, as for example a dive site might be created. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2009321894
commit
57b96490b2
7 changed files with 218 additions and 67 deletions
|
@ -304,4 +304,11 @@ void editTripNotes(dive_trip *trip, const QString &s)
|
|||
execute(new EditTripNotes(trip, s));
|
||||
}
|
||||
|
||||
#ifdef SUBSURFACE_MOBILE
|
||||
void editDive(dive *oldDive, dive *newDive, dive_site *createDs, dive_site *changeDs, location_t dsLocation)
|
||||
{
|
||||
execute(new EditDive(oldDive, newDive, createDs, changeDs, dsLocation));
|
||||
}
|
||||
#endif // SUBSURFACE_MOBILE
|
||||
|
||||
} // namespace Command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue