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:
Dirk Hohndel 2015-08-25 13:55:51 -07:00
parent 0db80103ca
commit ab255e07ea

View file

@ -1106,6 +1106,9 @@ void clear_dive_file_data()
while (dive_site_table.nr)
delete_dive_site(get_dive_site(0)->uuid);
clear_dive(&displayed_dive);
clear_dive_site(&displayed_dive_site);
free((void *)existing_filename);
existing_filename = NULL;