diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-13 23:11:36 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-13 23:11:36 -0800 |
commit | ca72ab574904bc7fe8083bb692f58d4647e2ff61 (patch) | |
tree | 28e79c9626c396ce4ed76137aa6e350d01a9c6dd /qt-ui | |
parent | 3ea2e15bd2f20e0f84bf02a468c3273a347ac554 (diff) | |
download | subsurface-ca72ab574904bc7fe8083bb692f58d4647e2ff61.tar.gz |
When closing a dive, delete all the dive sites
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 0991a98e1..1f4c2d7de 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -354,6 +354,8 @@ void MainWindow::closeCurrentFile() clear_git_id(); while (dive_table.nr) delete_single_dive(0); + while (dive_site_table.nr) + delete_dive_site(get_dive_site(0)->uuid); free((void *)existing_filename); existing_filename = NULL; |