mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Advanced search dialog: Fix an error when closing dialog if on the second tab and no field is focused
This commit is contained in:
parent
3185b543de
commit
ae3208c606
@ -272,9 +272,9 @@ class SearchDialog(QDialog):
|
|||||||
gprefs['advanced search dialog current tab'] = \
|
gprefs['advanced search dialog current tab'] = \
|
||||||
self.tab_widget.currentIndex()
|
self.tab_widget.currentIndex()
|
||||||
if self.tab_widget.currentIndex() == 1:
|
if self.tab_widget.currentIndex() == 1:
|
||||||
fw = self.tab_widget.focusWidget().objectName()
|
fw = self.tab_widget.focusWidget()
|
||||||
if fw:
|
if fw:
|
||||||
gprefs.set('advanced_search_simple_tab_focused_field', fw)
|
gprefs.set('advanced_search_simple_tab_focused_field', fw.objectName())
|
||||||
|
|
||||||
def accept(self):
|
def accept(self):
|
||||||
self.save_state()
|
self.save_state()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user