Use API to get URL.

This commit is contained in:
Michael Drake 2014-11-21 23:49:29 +00:00
parent c9683119c3
commit 0c7dc95dda
1 changed files with 2 additions and 3 deletions

View File

@ -1055,11 +1055,10 @@ static void ami_menu_item_hotlist_add(struct Hook *hook, APTR window, struct Int
bw = gwin->gw->bw;
if (bw == NULL || bw->current_content == NULL ||
nsurl_access(hlcache_handle_get_url(bw->current_content)) == NULL)
if (bw == NULL || browser_window_has_content(bw) == false)
return;
hotlist_add_url(hlcache_handle_get_url(bw->current_content));
hotlist_add_url(browser_window_get_url(bw));
ami_gui_update_hotlist_button(gwin);
}