From 7a8fe91690f31d9b4af6e041574c55028d928bc1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 21 Sep 2011 07:34:00 -0700 Subject: [PATCH] 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 --- gtk-gui.c | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.43.0