Clear yearly statistics when closing data file

Another oversight of what needed to be done when cleaning up the UI after
closing the data file.

Reported-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-02-01 00:19:03 +11:00
parent 0f2fac265f
commit b709dff23d
2 changed files with 3 additions and 1 deletions

View file

@ -249,6 +249,7 @@ static void file_close(GtkWidget *w, gpointer data)
process_selected_dives();
clear_stats_widgets();
clear_events();
show_dive_stats(NULL);
/* clear the equipment page */
clear_equipment_widgets();