mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
189bec0c6b
commit
7a8fe91690
1 changed files with 3 additions and 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();
|
||||
|
|
Loading…
Add table
Reference in a new issue