Skip to content

Commit

Permalink
ev-window.c: Only close after save-as if it's spawned as a result
Browse files Browse the repository at this point in the history
of the exit document-modified dialog.

Fixes #609

ref: 9d49b67
  • Loading branch information
mtwebster committed Jul 19, 2023
1 parent a989f42 commit edbe53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/ev-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit edbe53c

Please sign in to comment.