Restrict Object context submenu to CONTENT_IMAGE

svn path=/trunk/netsurf/; revision=12377
This commit is contained in:
Chris Young 2011-05-10 23:10:53 +00:00
parent 8def2d6932
commit 255c858c43

View File

@ -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,