From bf9248ddea7dcbfd6656b729f0cf775b71731043 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 22 May 2021 15:07:28 +0530 Subject: [PATCH] Edit book: Fix a regression in 5.18 that broke editing/creating saved searches. Fixes #1929267 [Editing any 'Saved Seach' will result in an error](https://bugs.launchpad.net/calibre/+bug/1929267) --- src/calibre/gui2/tweak_book/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/search.py b/src/calibre/gui2/tweak_book/search.py index d726924ee4..0472cad525 100644 --- a/src/calibre/gui2/tweak_book/search.py +++ b/src/calibre/gui2/tweak_book/search.py @@ -1046,7 +1046,7 @@ class SavedSearches(QWidget): def stack_current_changed(self, index): visible = index == 0 - for x in ('eb', 'ab', 'rb', 'upb', 'dnb', 'd2', 'filter_text', 'cft', 'd3', 'ib', 'eb2'): + for x in ('eb', 'ab', 'rb', 'upb', 'dnb', 'd2', 'filter_text', 'd3', 'ib', 'eb2'): getattr(self, x).setVisible(visible) @property