diff options
author | Doug Junkins <junkins@foghead.com> | 2019-05-04 20:40:27 -0700 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-05-06 10:48:44 +0200 |
commit | 704ff9f82e35699dcd5ba260cda798195b0860a5 (patch) | |
tree | 590a3456015417a582f1de06051b864e0a109e3e /desktop-widgets/command.cpp | |
parent | c38a86bebf5d031d8c830813d0e4107bcd9e098c (diff) | |
download | subsurface-704ff9f82e35699dcd5ba260cda798195b0860a5.tar.gz |
Add undo/redo commands for importing dive sites
ImportDiveSites adds the provided dive sites to the core dive site table
and stores the source data so it can be undone.
Signed-off-by: Doug Junkins <junkins@foghead.com>
Diffstat (limited to 'desktop-widgets/command.cpp')
-rw-r--r-- | desktop-widgets/command.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/command.cpp b/desktop-widgets/command.cpp index ccfcbc524..00bb49872 100644 --- a/desktop-widgets/command.cpp +++ b/desktop-widgets/command.cpp @@ -120,6 +120,11 @@ void addDiveSite(const QString &name) execute(new AddDiveSite(name)); } +void importDiveSites(struct dive_site_table *sites, const QString &source) +{ + execute(new ImportDiveSites(sites, source)); +} + void mergeDiveSites(dive_site *ds, const QVector<dive_site *> &sites) { execute(new MergeDiveSites(ds, sites)); |