mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c38a86bebf
commit
704ff9f82e
4 changed files with 59 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue