From: Dirk Hohndel Date: Wed, 21 Sep 2011 14:34:00 +0000 (-0700) Subject: Catch changes to the info of the current dive when quitting X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7a8fe91690f31d9b4af6e041574c55028d928bc1;p=ext%2Fsubsurface.git Catch changes to the info of the current dive when quitting As the application shuts down we do one more check to see if the dive that is currently being displayed has been modified (we previously just checked as we switch dives) Signed-off-by: Dirk Hohndel --- diff --git a/gtk-gui.c b/gtk-gui.c index 71762f5..a34ac4f 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -163,6 +163,9 @@ static void ask_save_changes() void on_destroy(GtkWidget* w, gpointer data) { + /* Make sure to flush any modified dive data */ + update_dive(NULL); + if (unsaved_changes()) ask_save_changes(); gtk_main_quit();