summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-03-14 00:00:54 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit4d183e0d75a3ae5b536abb6ea254ba224d713f72 (patch)
tree2be4630d6cb83c2930da6c9c4fd081c09b658273 /desktop-widgets/command.cpp
parent2bb2643ae4d4c1b6d0c32c9a18e2225eed0b5936 (diff)
downloadsubsurface-4d183e0d75a3ae5b536abb6ea254ba224d713f72.tar.gz
Undo: implement undo of dive site notes editing
Simply copy the code of description editing. 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 1d34d268b..f476a66d0 100644
--- a/desktop-widgets/command.cpp
+++ b/desktop-widgets/command.cpp
@@ -93,6 +93,11 @@ void editDiveSiteDescription(dive_site *ds, const QString &value)
execute(new EditDiveSiteDescription(ds, value));
}
+void editDiveSiteNotes(dive_site *ds, const QString &value)
+{
+ execute(new EditDiveSiteNotes(ds, value));
+}
+
void addDiveSite(const QString &name)
{
execute(new AddDiveSite(name));