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_30_1~10 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=5be77399cedeb6561e640b7f0b70bd3cca0cfcdd;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 bdd0532f..90e4fcb0 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); }