diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-23 19:11:13 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-29 00:09:31 +0000 |
commit | f527a70831a37e736431baa5705c9d188fc12f4b (patch) | |
tree | 5260e51c944b193175b9e318457bb281ee760fdf /desktop-widgets/tab-widgets/maintab.cpp | |
parent | 8de471f90e95a5a75d0fec78d5bbf900eb90f235 (diff) | |
download | subsurface-f527a70831a37e736431baa5705c9d188fc12f4b.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 3b727126a..08914c869 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -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 |