summaryrefslogtreecommitdiff
path: root/riscos/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/search.c')
-rw-r--r--riscos/search.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/riscos/search.c b/riscos/search.c
index 16f174a45..1efa976ac 100644
--- a/riscos/search.c
+++ b/riscos/search.c
@@ -78,6 +78,10 @@ void ro_gui_search_prepare(struct gui_window *g)
assert(g != NULL);
+ /* if the search dialogue is reopened over a new window, we still
+ need to cancel the previous search */
+ ro_gui_search_end();
+
search_current_window = g;
ro_gui_set_icon_string(dialog_search, ICON_SEARCH_TEXT, "");