aboutsummaryrefslogtreecommitdiffstats
path: root/commands/command.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-01-10 08:25:37 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-10 09:25:57 -0700
commit57b96490b2c5b81023439046dea225b8caf09946 (patch)
tree3c5a811d23fbd80720de18331786ab1b56222407 /commands/command.cpp
parent200932189451d52e277004871004e3b2a0593e58 (diff)
downloadsubsurface-57b96490b2c5b81023439046dea225b8caf09946.tar.gz
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>
Diffstat (limited to 'commands/command.cpp')
-rw-r--r--commands/command.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/commands/command.cpp b/commands/command.cpp
index aa1d18183..47fc45b90 100644
--- a/commands/command.cpp
+++ b/commands/command.cpp
@@ -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