mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-13 07:38:03 -04:00
Fix GUI dialog errors preventing them from returning properly.
This commit is contained in:
parent
b2626bace3
commit
68587e8679
@ -34,8 +34,11 @@ class HeuristicsWidget(Widget, Ui_Form):
|
|||||||
def break_cycles(self):
|
def break_cycles(self):
|
||||||
Widget.break_cycles(self)
|
Widget.break_cycles(self)
|
||||||
|
|
||||||
self.opt_enable_heuristics.stateChanged.disconnect()
|
try:
|
||||||
self.opt_unwrap_lines.stateChanged.disconnect()
|
self.opt_enable_heuristics.stateChanged.disconnect()
|
||||||
|
self.opt_unwrap_lines.stateChanged.disconnect()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
def set_value_handler(self, g, val):
|
def set_value_handler(self, g, val):
|
||||||
if val is None and g is self.opt_html_unwrap_factor:
|
if val is None and g is self.opt_html_unwrap_factor:
|
||||||
|
@ -45,5 +45,4 @@ class SearchAndReplaceWidget(Widget, Ui_Form):
|
|||||||
error_dialog(self, _('Invalid regular expression'),
|
error_dialog(self, _('Invalid regular expression'),
|
||||||
_('Invalid regular expression: %s')%err).exec_()
|
_('Invalid regular expression: %s')%err).exec_()
|
||||||
return False
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user