Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-01-28 12:36:34 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-01-28 12:36:34 (GMT)
commitf3fd33cd579a92acbd7a86e550424558f973a064 (patch)
tree3d7a534fedf871218d6225d06cdd489d331b8acd
parent738af006aeed38bb1cc0f002a8613a343f5c3706 (diff)
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): Do not update links treeview if it doesn't have a model assigned yet. svn path=/trunk/; revision=2258
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-sidebar-links.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ff8c5d..8367a5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
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),
(ev_sidebar_links_class_init), (update_page_callback):
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 50eb29f..1205b4e 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -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);