summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ev-sidebar-thumbnails.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index 5fb951ac..b677d032 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -457,9 +457,7 @@ add_range (EvSidebarThumbnails *sidebar_thumbnails,
if (priv->document->iswebdocument) {
ev_job_set_run_mode(job, EV_JOB_RUN_MAIN_LOOP);
}
-
- ev_job_scheduler_push_job (EV_JOB (job), EV_JOB_PRIORITY_HIGH);
-
+
g_object_set_data_full (G_OBJECT (job), "tree_iter",
gtk_tree_iter_copy (&iter),
(GDestroyNotify) gtk_tree_iter_free);
@@ -469,7 +467,9 @@ add_range (EvSidebarThumbnails *sidebar_thumbnails,
gtk_list_store_set (priv->list_store, &iter,
COLUMN_JOB, job,
-1);
-
+
+ ev_job_scheduler_push_job (EV_JOB (job), EV_JOB_PRIORITY_HIGH);
+
/* The queue and the list own a ref to the job now */
g_object_unref (job);
} else if (job) {