]> www.fi.muni.cz Git - evince.git/blobdiff - libview/ev-view.c
libview: remove all widgets from the View when reloading the doc.
[evince.git] / libview / ev-view.c
index 301c8ca57876f095c3e9f3feb0d6f107107944d3..1b404dce571ab75c2e8139982817a0d47a1b9653 100644 (file)
@@ -5219,6 +5219,7 @@ ev_view_document_changed_cb (EvDocumentModel *model,
                gint current_page;
 
                clear_caches (view);
+               ev_view_remove_all (view);
 
                if (view->document) {
                        g_object_unref (view->document);