]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Do not set loading to FALSE unless we really have a document
authorCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 13 Apr 2010 15:05:39 +0000 (17:05 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 13 Apr 2010 15:10:12 +0000 (17:10 +0200)
libview/ev-view.c

index c7e2b380c8b5618f67d716a5b966824dead4d859..6e96fb8e93c92045f6b72c8335a43152b76ee896 100644 (file)
@@ -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);
                 }