mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 10:33:31 +02:00
Fix #2553 (Cannot Access "Preferences")
This commit is contained in:
parent
e162f458fd
commit
b6218296c9
1 changed files with 5 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
|||
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
from PyQt4.Qt import Qt
|
||||
|
||||
from calibre.gui2.convert.lrf_output_ui import Ui_Form
|
||||
from calibre.gui2.convert import Widget
|
||||
|
|
@ -42,8 +43,10 @@ def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
|||
|
||||
|
||||
def set_value_handler(self, g, val):
|
||||
if val is None and unicode(g.objectName()) in ('opt_serif_family',
|
||||
if unicode(g.objectName()) in ('opt_serif_family',
|
||||
'opt_sans_family', 'opt_mono_family'):
|
||||
idx = g.findText(val, Qt.MatchFixedString)
|
||||
if idx < 0:
|
||||
idx = 0
|
||||
g.setCurrentIndex(0)
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue