]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-jobs.c
Show main window and load document with the font-config lock held.
[evince.git] / shell / ev-jobs.c
index 21beaeab0f053e9597f521a78263f6473b9cd852..7c6607563c71228bd7bdb600e1761fdf8e383bc9 100644 (file)
@@ -499,9 +499,11 @@ ev_job_xfer_run (EvJobXfer *job)
           because, e.g., a password is required - if so, just reload rather than
           creating a new instance */
        if (EV_JOB (job)->document) {
+               ev_document_fc_mutex_lock ();
                ev_document_load (EV_JOB (job)->document,
                                  job->local_uri ? job->local_uri : job->uri,
                                  &job->error);
+               ev_document_fc_mutex_unlock ();
                EV_JOB (job)->finished = TRUE;
                return;
        }