mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Move the commit to after the error check
This commit is contained in:
parent
301cd03cd4
commit
3bfb3ccf6f
@ -229,12 +229,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
self.gst_value.blockSignals(False)
|
self.gst_value.blockSignals(False)
|
||||||
|
|
||||||
def commit(self):
|
def commit(self):
|
||||||
restart = ConfigWidgetBase.commit(self)
|
|
||||||
if self.opt_case_sensitive.isChecked() and self.opt_use_primary_find_in_search.isChecked():
|
if self.opt_case_sensitive.isChecked() and self.opt_use_primary_find_in_search.isChecked():
|
||||||
error_dialog(self, _('Incompatible options'), _(
|
error_dialog(self, _('Incompatible options'), _(
|
||||||
'The option to have un-accented characters match accented characters has no effect'
|
'The option to have un-accented characters match accented characters has no effect'
|
||||||
' if you also turn on case-sensitive searching. So only turn on one of those options'), show=True)
|
' if you also turn on case-sensitive searching. So only turn on one of those options'), show=True)
|
||||||
raise AbortCommit()
|
raise AbortCommit()
|
||||||
|
restart = ConfigWidgetBase.commit(self)
|
||||||
if self.gst_changed:
|
if self.gst_changed:
|
||||||
self.db.new_api.set_pref('grouped_search_terms', self.gst)
|
self.db.new_api.set_pref('grouped_search_terms', self.gst)
|
||||||
self.db.field_metadata.add_grouped_search_terms(self.gst)
|
self.db.field_metadata.add_grouped_search_terms(self.gst)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user