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:
Berthold Stoeger 2020-01-10 08:25:37 +08:00 committed by Dirk Hohndel
parent 2009321894
commit 57b96490b2
7 changed files with 218 additions and 67 deletions

View file

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