From 15883a31470b322a6376f59db0ef9e12d954ecee Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 18 Oct 2014 17:40:21 +0100 Subject: [PATCH] Use core searchability test function. --- riscos/window.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/riscos/window.c b/riscos/window.c index ca1a4b443..f8f5a6ff0 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -4030,11 +4030,7 @@ void ro_gui_window_action_save(struct gui_window *g, gui_save_type save_type) void ro_gui_window_action_search(struct gui_window *g) { - if (g == NULL || g->bw == NULL || g->bw->current_content == NULL || - (content_get_type(g->bw->current_content) != - CONTENT_HTML && - content_get_type(g->bw->current_content) != - CONTENT_TEXTPLAIN)) + if (g == NULL || g->bw == NULL || !browser_window_can_search(g->bw)) return; ro_gui_search_prepare(g->bw);