[evince/gnome-2-30] [libview] Do not set loading to FALSE unless we really have a document



commit 5be77399cedeb6561e640b7f0b70bd3cca0cfcdd
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Tue Apr 13 17:05:39 2010 +0200

    [libview] Do not set loading to FALSE unless we really have a document

 libview/ev-view.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index bdd0532..90e4fcb 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);
                 }



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