mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
Restrict Object context submenu to CONTENT_IMAGE
svn path=/trunk/netsurf/; revision=12377
This commit is contained in:
parent
8def2d6932
commit
255c858c43
@ -267,7 +267,8 @@ void ami_context_menu_show(struct gui_window_2 *gwin,int x,int y)
|
|||||||
menuhascontent = true;
|
menuhascontent = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(no_obj && curbox->object)
|
if(no_obj && curbox->object &&
|
||||||
|
(content_get_type(curbox->object) == CONTENT_IMAGE))
|
||||||
{
|
{
|
||||||
IDoMethod(gwin->objects[OID_MENU],PM_INSERT,
|
IDoMethod(gwin->objects[OID_MENU],PM_INSERT,
|
||||||
NewObject(POPUPMENU_GetItemClass(), NULL,
|
NewObject(POPUPMENU_GetItemClass(), NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user