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
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user