Dive site: pass dive-site pointer to delete_dive_site()

Instead of passing a uuid, pass a pointer to the dive site.
This is small step in an effort to remove uuids.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-10-23 19:11:13 +02:00 committed by Dirk Hohndel
parent 8de471f90e
commit f527a70831
8 changed files with 13 additions and 14 deletions

View file

@ -888,7 +888,7 @@ void MainTab::acceptChanges()
if (oldDs && !is_dive_site_used(oldDs, false)) {
if (verbose)
qDebug() << "delete now unused dive site" << (oldDs->name ? oldDs->name : "without name");
delete_dive_site(oldDs->uuid);
delete_dive_site(oldDs);
MapWidget::instance()->reload();
}
// the code above can change the correct uuid for the displayed dive site - and the