From: Carlos Garcia Campos Date: Tue, 13 Apr 2010 15:05:39 +0000 (+0200) Subject: [libview] Do not set loading to FALSE unless we really have a document X-Git-Tag: EVINCE_2_31_1~32 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=7ff46d04e6f8f6e3cd658f73c65b5d66be55ee63;p=evince.git [libview] Do not set loading to FALSE unless we really have a document --- diff --git a/libview/ev-view.c b/libview/ev-view.c index c7e2b380..6e96fb8e 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -4557,8 +4557,6 @@ ev_view_document_changed_cb (EvDocumentModel *model, { EvDocument *document = ev_document_model_get_document (model); - view->loading = FALSE; - if (document != view->document) { gint current_page; @@ -4572,6 +4570,7 @@ ev_view_document_changed_cb (EvDocumentModel *model, view->find_result = 0; if (view->document) { + view->loading = FALSE; g_object_ref (view->document); setup_caches (view); }