From 3bfb3ccf6fbb491ce3eae0e8fd24107044b57064 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sat, 19 Nov 2022 15:17:56 +0000 Subject: [PATCH] Move the commit to after the error check --- src/calibre/gui2/preferences/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/preferences/search.py b/src/calibre/gui2/preferences/search.py index 6cc2a3dbf7..7795844081 100644 --- a/src/calibre/gui2/preferences/search.py +++ b/src/calibre/gui2/preferences/search.py @@ -229,12 +229,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): self.gst_value.blockSignals(False) def commit(self): - restart = ConfigWidgetBase.commit(self) if self.opt_case_sensitive.isChecked() and self.opt_use_primary_find_in_search.isChecked(): error_dialog(self, _('Incompatible options'), _( '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) raise AbortCommit() + restart = ConfigWidgetBase.commit(self) if self.gst_changed: self.db.new_api.set_pref('grouped_search_terms', self.gst) self.db.field_metadata.add_grouped_search_terms(self.gst)