Skip to content

Commit

Permalink
fix shared
Browse files Browse the repository at this point in the history
  • Loading branch information
un-pogaz committed Feb 25, 2022
1 parent 2ab04e4 commit 8edd2a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SearchReplaceCalibre.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8edd2a9

Please sign in to comment.