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)

This commit is contained in:
Kovid Goyal 2021-05-22 15:07:28 +05:30
parent dfb86551f8
commit bf9248ddea
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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