aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-21 07:34:00 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-21 11:29:13 -0700
commit7a8fe91690f31d9b4af6e041574c55028d928bc1 (patch)
tree8cb1c61f3603505894b717c8b86cbad196ccf19b
parent189bec0c6b2c6af6834d279cdf453ab95d3018f9 (diff)
downloadsubsurface-7a8fe91690f31d9b4af6e041574c55028d928bc1.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--gtk-gui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 71762f535..a34ac4fb2 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();