diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-18 18:54:36 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-18 18:54:36 +0100 |
commit | 0666fcc742c9daadb3c34b91c2f52898c69b5a85 (patch) | |
tree | 35da0227c4a040220d41de4e60ae62c87882f9ba /riscos/window.c | |
parent | 85fb1fd45d4ee5901061d55bcdd0f19a04330d57 (diff) | |
download | netsurf-0666fcc742c9daadb3c34b91c2f52898c69b5a85.tar.gz netsurf-0666fcc742c9daadb3c34b91c2f52898c69b5a85.tar.bz2 |
Use can_select, rather than using insider knowledge of contents.
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/riscos/window.c b/riscos/window.c index b851775b3..9fb9e6438 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -2297,10 +2297,7 @@ bool ro_gui_window_menu_prepare(wimp_w w, wimp_i i, wimp_menu *menu, /* Selection Submenu */ ro_gui_menu_set_entry_shaded(menu, BROWSER_SELECTION, - h == NULL || (content_get_type(h) != CONTENT_HTML && - content_get_type(h) != CONTENT_TEXTPLAIN)); - /* make menu available if there's anything that /could/ - * be selected */ + !browser_window_can_select(bw)); ro_gui_menu_set_entry_shaded(menu, BROWSER_SELECTION_SAVE, ~editor_flags & BW_EDITOR_CAN_COPY); |