Undo: implement undo of dive site addition

Implement a dive site addition undo command and connect it to
the add dive site button. The added dive site has a default
name ("new dive site").

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-03-13 20:58:25 +01:00 committed by Dirk Hohndel
parent 2dcc0a7d1e
commit 56dcbd9588
6 changed files with 55 additions and 0 deletions

View file

@ -93,4 +93,9 @@ void editDiveSiteDescription(dive_site *ds, const QString &value)
execute(new EditDiveSiteDescription(ds, value));
}
void addDiveSite(const QString &name)
{
execute(new AddDiveSite(name));
}
} // namespace Command