mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:03:23 +00:00
Clear the displayed dive and dive site when clearing dive data
Otherwise some artefacts of the last dive / dive site that where shown can remain visible even after the dive data was closed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0db80103ca
commit
ab255e07ea
1 changed files with 3 additions and 0 deletions
|
@ -1106,6 +1106,9 @@ void clear_dive_file_data()
|
||||||
while (dive_site_table.nr)
|
while (dive_site_table.nr)
|
||||||
delete_dive_site(get_dive_site(0)->uuid);
|
delete_dive_site(get_dive_site(0)->uuid);
|
||||||
|
|
||||||
|
clear_dive(&displayed_dive);
|
||||||
|
clear_dive_site(&displayed_dive_site);
|
||||||
|
|
||||||
free((void *)existing_filename);
|
free((void *)existing_filename);
|
||||||
existing_filename = NULL;
|
existing_filename = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue