]> www.fi.muni.cz Git - evince.git/commitdiff
Do not update links treeview if it doesn't have a model assigned yet.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 28 Jan 2007 12:36:34 +0000 (12:36 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 28 Jan 2007 12:36:34 +0000 (12:36 +0000)
2007-01-28  Carlos Garcia Campos  <carlosgc@gnome.org>
* shell/ev-sidebar-links.c: (ev_sidebar_links_map):
Do not update links treeview if it doesn't have a model assigned yet.

svn path=/trunk/; revision=2258

ChangeLog
shell/ev-sidebar-links.c

index 1ff8c5dda6bd025223e9249bdedce4db0d4d209c..8367a5e394bb93d2f89b1c0b6e0344cea499b27b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-28  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-sidebar-links.c: (ev_sidebar_links_map):
+
+       Do not update links treeview if it doesn't have a model assigned yet. 
+
 2007-01-28  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-sidebar-links.c: (ev_sidebar_links_map),
index 50eb29f6b30157420985489dc3c01743a18c0ccc..1205b4e2ecc700c8b1129dbbbeea3adf9b15e734 100644 (file)
@@ -178,7 +178,7 @@ ev_sidebar_links_map (GtkWidget *widget)
 
        GTK_WIDGET_CLASS (ev_sidebar_links_parent_class)->map (widget);
 
-       if (links->priv->page_cache) {
+       if (links->priv->model) {
                update_page_callback (links->priv->page_cache,
                                      ev_page_cache_get_current_page (links->priv->page_cache),
                                      links);