summaryrefslogtreecommitdiff
path: root/desktop/global_history.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/global_history.c')
-rw-r--r--desktop/global_history.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/desktop/global_history.c b/desktop/global_history.c
index 449fdccbf..a4919e981 100644
--- a/desktop/global_history.c
+++ b/desktop/global_history.c
@@ -767,11 +767,6 @@ nserror global_history_init(struct core_window_callback_table *cw_t,
return err;
}
- /* History tree is built
- * We suppress the treeview height callback on entry insertion before
- * the treeview is built. */
- gh_ctx.built = true;
-
/* Expand the "Today" folder node */
err = treeview_node_expand(gh_ctx.tree,
gh_ctx.folders[GH_TODAY].folder);
@@ -779,6 +774,14 @@ nserror global_history_init(struct core_window_callback_table *cw_t,
return err;
}
+ /* History tree is built
+ * We suppress the treeview height callback on entry insertion before
+ * the treeview is built. */
+ gh_ctx.built = true;
+
+ /* Inform client of window height */
+ treeview_get_height(gh_ctx.tree);
+
LOG(("Loaded global history"));
return NSERROR_OK;