From cc42debb8881e3e663defdcae2529ef9a62fbd6b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 15 Sep 2012 17:49:29 -0700 Subject: [PATCH] Mark divelist unchanged after closing the datafile This seems rather obvious - I'm surprised I didn't notice it earlier. Signed-off-by: Dirk Hohndel --- gtk-gui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk-gui.c b/gtk-gui.c index 3833b5892..49dc36f12 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -252,6 +252,7 @@ static void file_close(GtkWidget *w, gpointer data) free(get_dive(i)); dive_table.nr = 0; dive_table.preexisting = 0; + mark_divelist_changed(FALSE); /* inlined version of g_list_free_full(dive_trip_list, free); */ g_list_foreach(dive_trip_list, (GFunc)free, NULL);