summaryrefslogtreecommitdiff
path: root/riscos/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/window.c')
-rw-r--r--riscos/window.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/riscos/window.c b/riscos/window.c
index 866b3dfdf..35f9b201e 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -4245,11 +4245,17 @@ void ro_gui_window_action_zoom(struct gui_window *g)
void ro_gui_window_action_add_bookmark(struct gui_window *g)
{
- if (g == NULL || g->bw == NULL || g->bw->current_content == NULL ||
+ nsurl *url;
+
+ if (g == NULL || g->bw == NULL || g->toolbar == NULL ||
+ g->bw->current_content == NULL ||
hlcache_handle_get_url(g->bw->current_content) == NULL)
return;
- ro_gui_hotlist_add_page(hlcache_handle_get_url(g->bw->current_content));
+ url = hlcache_handle_get_url(g->bw->current_content);
+
+ ro_gui_hotlist_add_page(url);
+ ro_toolbar_hotlist_modifed(g->toolbar, url);
}