Fix GUI dialog errors preventing them from returning properly.

This commit is contained in:
John Schember 2011-01-16 09:16:05 -05:00
parent b2626bace3
commit 68587e8679
2 changed files with 6 additions and 4 deletions

View File

@ -34,8 +34,11 @@ class HeuristicsWidget(Widget, Ui_Form):
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:

View File

@ -45,5 +45,4 @@ class SearchAndReplaceWidget(Widget, Ui_Form):
error_dialog(self, _('Invalid regular expression'),
_('Invalid regular expression: %s')%err).exec_()
return False
return True