]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-window.c
Make sure print job is only run when the print button is clicked. Based on
[evince.git] / shell / ev-window.c
index 4c3fcf2397ab7ce4eb64ceb77e5b7b4f72bec9d9..dc96285d79429cb1cf5a42b3cf9ac1cadec61279 100644 (file)
@@ -2220,7 +2220,8 @@ ev_window_print_dialog_response_cb (GtkDialog *dialog,
        GtkPrintPages  print_pages;
        const gchar   *file_format;
        
-       if (response == GTK_RESPONSE_CANCEL) {
+       if (response != GTK_RESPONSE_ACCEPT &&
+           response != GTK_RESPONSE_APPLY) {
                gtk_widget_destroy (GTK_WIDGET (dialog));
                window->priv->print_dialog = NULL;