From 149ccef97757590c750685513f175822f9d4f2d0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Nov 2024 11:06:24 +0530 Subject: [PATCH] Add a tooltip to Replace All --- src/calibre/gui2/tweak_book/search.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/search.py b/src/calibre/gui2/tweak_book/search.py index ff485b44292e..35e7b41a0518 100644 --- a/src/calibre/gui2/tweak_book/search.py +++ b/src/calibre/gui2/tweak_book/search.py @@ -328,6 +328,8 @@ def __init__(self, parent=None): self.rfb = rfb = PushButton(_('Replace a&nd Find'), 'replace-find', self) self.rb = rb = PushButton(_('Re&place'), 'replace', self) self.rab = rab = PushButton(_('Replace &all'), 'replace-all', self) + rab.setToolTip(_('Replace all occurrences, ignoring wrap and current position.')) + l.addWidget(fb, 0, 2) l.addWidget(rfb, 0, 3) l.addWidget(rb, 1, 2) @@ -1423,7 +1425,7 @@ def run_search( if isinstance(searches, dict): searches = [searches] - editor, where, files, do_all, marked = initialize_search_request(searches[0], action, current_editor, current_editor_name, searchable_names) + editor, where, files, do_all_, marked = initialize_search_request(searches[0], action, current_editor, current_editor_name, searchable_names) wrap = searches[0]['wrap'] errfind = searches[0]['find']