From ab255e07ea6060d1a36a5195f6be9cccd3e0ffcc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 25 Aug 2015 13:55:51 -0700 Subject: 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 --- divelist.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'divelist.c') diff --git a/divelist.c b/divelist.c index 18ff99135..85a70f9fd 100644 --- a/divelist.c +++ b/divelist.c @@ -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; -- cgit v1.2.3-70-g09d2