From edbe53cc5f2070788334ad5aa7dc4ddbcf6b8b54 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Tue, 18 Jul 2023 23:07:00 -0400 Subject: [PATCH] ev-window.c: Only close after save-as if it's spawned as a result of the exit document-modified dialog. Fixes #609 ref: 9d49b677892c42 --- shell/ev-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/ev-window.c b/shell/ev-window.c index 88191af0..2bc40f69 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -3111,7 +3111,6 @@ ev_window_cmd_save_as (GtkAction *action, gchar *uri; uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (fc)); - ev_window->priv->close_after_save = TRUE; ev_window_save_as (ev_window, uri); g_free (uri); @@ -3684,6 +3683,7 @@ ev_window_check_document_modified (EvWindow *ev_window) gtk_widget_destroy (GTK_WIDGET (dialog)); if (result == GTK_RESPONSE_YES) { + ev_window->priv->close_after_save = TRUE; return !ev_window_cmd_save_as (NULL, ev_window); } else if (result == GTK_RESPONSE_NO) {