Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-sidebar-links.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-sidebar-links.c')
-rw-r--r--shell/ev-sidebar-links.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 19b9ecf..18f9e8f 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -348,11 +348,6 @@ ev_sidebar_links_clear_document (EvSidebarLinks *sidebar_links)
g_return_if_fail (EV_IS_SIDEBAR_LINKS (sidebar_links));
priv = sidebar_links->priv;
- if (priv->current_document) {
- g_object_unref (priv->current_document);
- priv->current_document = NULL;
- }
- gtk_tree_store_clear (GTK_TREE_STORE (priv->model));
/* Clear the idle */
if (priv->idle_id != 0) {
@@ -363,6 +358,11 @@ ev_sidebar_links_clear_document (EvSidebarLinks *sidebar_links)
g_list_free (priv->idle_stack);
priv->idle_stack = NULL;
+ if (priv->current_document) {
+ g_object_unref (priv->current_document);
+ priv->current_document = NULL;
+ }
+ gtk_tree_store_clear (GTK_TREE_STORE (priv->model));
}
void