Fix adding to hotlist from context menu
This commit is contained in:
parent
56723e5898
commit
3a35294a0e
|
@ -767,12 +767,11 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved
|
||||||
case CMID_URLHOTLIST:
|
case CMID_URLHOTLIST:
|
||||||
case CMID_PAGEHOTLIST:
|
case CMID_PAGEHOTLIST:
|
||||||
{
|
{
|
||||||
nsurl *nsurl;
|
if (nsurl_create(userdata, &url) != NSERROR_OK)
|
||||||
if (nsurl_create(url, &nsurl) != NSERROR_OK)
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
hotlist_add_url(nsurl);
|
hotlist_add_url(url);
|
||||||
nsurl_unref(nsurl);
|
nsurl_unref(url);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue