mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
When closing a dive, delete all the dive sites
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3ea2e15bd2
commit
ca72ab5749
1 changed files with 2 additions and 0 deletions
|
@ -354,6 +354,8 @@ void MainWindow::closeCurrentFile()
|
||||||
clear_git_id();
|
clear_git_id();
|
||||||
while (dive_table.nr)
|
while (dive_table.nr)
|
||||||
delete_single_dive(0);
|
delete_single_dive(0);
|
||||||
|
while (dive_site_table.nr)
|
||||||
|
delete_dive_site(get_dive_site(0)->uuid);
|
||||||
|
|
||||||
free((void *)existing_filename);
|
free((void *)existing_filename);
|
||||||
existing_filename = NULL;
|
existing_filename = NULL;
|
||||||
|
|
Loading…
Reference in a new issue