mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 00:23:51 +02:00
Fix GUI dialog errors preventing them from returning properly.
This commit is contained in:
parent
b2626bace3
commit
68587e8679
2 changed files with 6 additions and 4 deletions
|
|
@ -34,8 +34,11 @@ def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
|||
def break_cycles(self):
|
||||
Widget.break_cycles(self)
|
||||
|
||||
self.opt_enable_heuristics.stateChanged.disconnect()
|
||||
self.opt_unwrap_lines.stateChanged.disconnect()
|
||||
try:
|
||||
self.opt_enable_heuristics.stateChanged.disconnect()
|
||||
self.opt_unwrap_lines.stateChanged.disconnect()
|
||||
except:
|
||||
pass
|
||||
|
||||
def set_value_handler(self, g, val):
|
||||
if val is None and g is self.opt_html_unwrap_factor:
|
||||
|
|
|
|||
|
|
@ -45,5 +45,4 @@ def pre_commit_check(self):
|
|||
error_dialog(self, _('Invalid regular expression'),
|
||||
_('Invalid regular expression: %s')%err).exec_()
|
||||
return False
|
||||
|
||||
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in a new issue