diff --git a/SearchReplaceCalibre.py b/SearchReplaceCalibre.py index fe61376..96ca2c3 100644 --- a/SearchReplaceCalibre.py +++ b/SearchReplaceCalibre.py @@ -1058,7 +1058,7 @@ def s_r_save_query(self, *args): dex = 0 name = '' while not name: - name, ok = QtWidgets.QInputDialog.getItem(self, _('Save search/replace'), + name, ok = QtWidgets.QInputDialog.getItem(self, _('Save search/replace'), _('Search/replace name:'), names, dex, True) if not ok: return @@ -1074,7 +1074,7 @@ def s_r_save_query(self, *args): return new = False - query = self.get_query() + query = self._get_query_without_error() query[KEY.NAME] = name self.queries[name] = query diff --git a/__init__.py b/__init__.py index 15e4ce2..568f792 100644 --- a/__init__.py +++ b/__init__.py @@ -33,7 +33,7 @@ class ActionMassSearchReplace(InterfaceActionBase): description = _('Easily apply a list of multiple saved Find and Replace operations to your books metadata') supported_platforms = ['windows', 'osx', 'linux'] author = 'un_pogaz' - version = (1, 4, 0) + version = (1, 4, 1) minimum_calibre_version = (4, 0, 0) #: This field defines the GUI plugin class that contains all the code diff --git a/changelog.md b/changelog.md index 25d6efe..84e010e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +### version 1.4.1 +[fix] Calibre Search/Replace operation are not saved if it contains an error + ### version 1.4.0 Shared Search/Replace operation: set in once, used where you want, edit them and all reference has edited Uses and compatible with Calibre saved Search/Replace system