From 1af2d395408a674a103ab197030f292c897bc19e Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 17 Apr 2011 10:40:49 +0100 Subject: [PATCH] Make the toggle search highlighting re-run the last search. --- src/calibre/gui2/search_box.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index f5b3649e27..40c9c34587 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -374,6 +374,8 @@ class SearchBoxMixin(object): # {{{ def highlight_only_clicked(self, state): config['highlight_search_matches'] = not config['highlight_search_matches'] self.set_highlight_only_button_icon() + self.search.do_search() + self.focus_to_library() def set_highlight_only_button_icon(self): if config['highlight_search_matches']: