diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-09-21 07:34:00 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-09-21 11:29:13 -0700 |
commit | 7a8fe91690f31d9b4af6e041574c55028d928bc1 (patch) | |
tree | 8cb1c61f3603505894b717c8b86cbad196ccf19b /gtk-gui.c | |
parent | 189bec0c6b2c6af6834d279cdf453ab95d3018f9 (diff) | |
download | subsurface-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>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); |