[evince] Don't complain about inability to copy metadata



commit ac4bff3941374200bb8b6e6f723f0277e141dd50
Author: Caolán McNamara <caolanm redhat com>
Date:   Fri Dec 9 12:09:02 2016 +0000

    Don't complain about inability to copy metadata
    
    related rhbz#1022649
    
    nautilus just takes the view that copying metadata is a "nice to have",
    but if it doesn't work it's not a hard error so just do that
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692552

 libview/ev-jobs.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c
index dea5aa4..f24808b 100644
--- a/libview/ev-jobs.c
+++ b/libview/ev-jobs.c
@@ -1574,8 +1574,10 @@ ev_job_save_run (EvJob *job)
        ev_tmp_uri_unlink (local_uri);
 
         /* Copy the metadata from the original file */
-        if (!error)
-                ev_file_copy_metadata (job_save->document_uri, job_save->uri, &error);
+        if (!error) {
+                /* Ignore errors here. Failure to copy metadata is not a hard error */
+                ev_file_copy_metadata (job_save->document_uri, job_save->uri, NULL);
+        }
 
        if (error) {
                ev_job_failed_from_error (job, error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]