Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-09-03 16:35:01 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-09-03 16:35:01 (GMT)
commit62df36db729c222cf47774268a0fb83dabc8c65a (patch)
treea7b08c2962a3d7061c049eefbe2e23fe64213896 /shell
parent3a4e876c54d10a5b72dc0a95f0284218654a9f21 (diff)
Make sure not to use the history with documents not supporting links.
2007-09-03 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_add_history): Make sure not to use the history with documents not supporting links. Fixes bug #468954. svn path=/trunk/; revision=2660
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 7ef19c5..34e94eb 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -704,6 +704,9 @@ ev_window_add_history (EvWindow *window, gint page, EvLink *link)
if (window->priv->history == NULL)
return;
+
+ if (!EV_IS_DOCUMENT_LINKS (window->priv->document))
+ return;
if (link) {
action = g_object_ref (ev_link_get_action (link));
@@ -722,8 +725,7 @@ ev_window_add_history (EvWindow *window, gint page, EvLink *link)
find_task.page_label = page_label;
find_task.chapter = NULL;
- if (EV_IS_DOCUMENT_LINKS (window->priv->document) &&
- ev_document_links_has_document_links (EV_DOCUMENT_LINKS (window->priv->document))) {
+ if (ev_document_links_has_document_links (EV_DOCUMENT_LINKS (window->priv->document))) {
GtkTreeModel *model;
g_object_get (G_OBJECT (window->priv->sidebar_links), "model", &model, NULL);