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
+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.
+
2007-09-03 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (ev_window_load_job_cb):
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));
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);