summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-07 21:23:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit02d572226df82ccbdfff3c455c9e5b20a7992bc4 (patch)
tree26b213e2a2af1302631dd2dd2fd2ed3e622793ed /desktop-widgets/command.cpp
parenta9bd0690fe1d6bd841b0ede2ac53b280ef907b93 (diff)
downloadsubsurface-02d572226df82ccbdfff3c455c9e5b20a7992bc4.tar.gz
Undo: implement undo of divemaster editing
This is mostly a trivial copy of the buddies code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command.cpp')
-rw-r--r--desktop-widgets/command.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/command.cpp b/desktop-widgets/command.cpp
index f1c0a67dd..bb37eb816 100644
--- a/desktop-widgets/command.cpp
+++ b/desktop-widgets/command.cpp
@@ -185,4 +185,9 @@ void editBuddies(const QVector<dive *> &dives, const QStringList &newList, struc
execute(new EditBuddies(dives, newList, d));
}
+void editDiveMaster(const QVector<dive *> &dives, const QStringList &newList, struct dive *d)
+{
+ execute(new EditDiveMaster(dives, newList, d));
+}
+
} // namespace Command