diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-11-23 15:30:26 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-11-23 15:30:26 +0000 |
commit | eea34922668e8dd5830d6633766aefc3f6e8b5a4 (patch) | |
tree | 15ed09a6f47c4f1cfc21d69a320057e03083f9dd /riscos/window.c | |
parent | f66ddd5ec01ef995fcb42c7914ad9c5a8686890c (diff) | |
download | netsurf-eea34922668e8dd5830d6633766aefc3f6e8b5a4.tar.gz netsurf-eea34922668e8dd5830d6633766aefc3f6e8b5a4.tar.bz2 |
Update hotlist indicator when current page is added to hotlist.
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 10 |
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); } |