Fix adding to hotlist from context menu

This commit is contained in:
Chris Young 2013-10-13 12:01:11 +01:00
parent 56723e5898
commit 3a35294a0e
1 changed files with 3 additions and 4 deletions

View File

@ -767,12 +767,11 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved
case CMID_URLHOTLIST:
case CMID_PAGEHOTLIST:
{
nsurl *nsurl;
if (nsurl_create(url, &nsurl) != NSERROR_OK)
if (nsurl_create(userdata, &url) != NSERROR_OK)
break;
hotlist_add_url(nsurl);
nsurl_unref(nsurl);
hotlist_add_url(url);
nsurl_unref(url);
}
break;