From 764ce832906e45289a9b5948726fe25c3cb4ce77 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 13 Jul 2025 12:22:50 +0530 Subject: [PATCH] Edit book: Fix the next/previous buttons in the Text search tool not working --- src/calibre/gui2/tweak_book/text_search.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/tweak_book/text_search.py b/src/calibre/gui2/tweak_book/text_search.py index 2ab5e95351..c600a70cfa 100644 --- a/src/calibre/gui2/tweak_book/text_search.py +++ b/src/calibre/gui2/tweak_book/text_search.py @@ -115,6 +115,7 @@ class TextSearch(QWidget): b.setIcon(QIcon.ic('arrow-down.png')), b.setText(_('&Next')) b.setToolTip(_('Find next match')) h.addWidget(b) + connect_lambda(b.clicked, self, lambda self: self.do_search()) self.prev_button = b = QToolButton(self) b.setIcon(QIcon.ic('arrow-up.png')), b.setText(_('&Previous')) b.setToolTip(_('Find previous match'))