summaryrefslogtreecommitdiff
path: root/riscos/global_history.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2007-03-03 22:47:45 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2007-03-03 22:47:45 +0000
commit6c65fea9b6dace438f1b3bb723c44a41665d36dd (patch)
tree59827c656f48ec605fc3f89ccca404d4ae9fb3df /riscos/global_history.c
parent284368c50e25b3d32d1516b97fec6d739e357fb2 (diff)
downloadnetsurf-6c65fea9b6dace438f1b3bb723c44a41665d36dd.tar.gz
netsurf-6c65fea9b6dace438f1b3bb723c44a41665d36dd.tar.bz2
Position new folders correctly for global history (fix 1547523)
svn path=/trunk/netsurf/; revision=3196
Diffstat (limited to 'riscos/global_history.c')
-rw-r--r--riscos/global_history.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/riscos/global_history.c b/riscos/global_history.c
index ab3fac1d1..f6e260af2 100644
--- a/riscos/global_history.c
+++ b/riscos/global_history.c
@@ -298,11 +298,16 @@ bool global_history_add_internal(const char *url,
}
}
+ tree_set_node_selected(global_history_tree,
+ parent, false);
+ tree_set_node_expanded(global_history_tree,
+ parent, false);
tree_link_node(link, parent, before);
if (!global_history_init) {
- tree_recalculate_node_positions(global_history_tree,
- global_history_tree->root);
+ tree_recalculate_node(global_history_tree, parent, true);
+ tree_recalculate_node_positions(global_history_tree,
+ global_history_tree->root);
tree_redraw_area(global_history_tree,
0, 0, 16384, 16384);
}