diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-21 14:26:29 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-11-21 14:26:29 +0000 |
commit | 3b686eaccc2acaa50e35806ac095723990ba50a5 (patch) | |
tree | 6e96ededcf40d8aa6bc32f3aad14f7b6e595695f /amiga/context_menu.c | |
parent | 9fb0eaa1cd9b059421e2da137deb0a94cf30fff7 (diff) | |
download | netsurf-3b686eaccc2acaa50e35806ac095723990ba50a5.tar.gz |
Use browser_window_can_select(), instead of assuming based on content type.
Diffstat (limited to 'amiga/context_menu.c')
-rw-r--r-- | amiga/context_menu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/amiga/context_menu.c b/amiga/context_menu.c index a96701f59..e5743dc62 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -682,8 +682,7 @@ void ami_context_menu_show(struct gui_window_2 *gwin,int x,int y) ami_context_menu_add_submenu(ctxmenuobj, CMSUB_NAVIGATE, gwin->gw->bw); menuhascontent = true; - if(content_get_type(cc) == CONTENT_HTML || - content_get_type(cc) == CONTENT_TEXTPLAIN) + if(browser_window_can_select(gwin->gw->bw)) { ami_context_menu_add_submenu(ctxmenuobj, CMSUB_SEL, gwin->gw); menuhascontent = true; |