Comment 7 for bug 1262875

Revision history for this message
Katja (katjawy) wrote :

Hi Kovid,
thanks for your help with this.
But ... sorry to say ... with the committed change, the match will not find a catalog with a different tag and therefore create a new one when the tag is changed.
The match should not search for tag=_('Catalog') anymore. Also I adjusted the dialog hint from "catalog" to "book" to be in line with the new behaviour.

calibre/db/adding.py row 252
# matches = cache._search('title:="{}" and tags:="{}"'.format(title.replace('"', '\\"'), _('Catalog')), None)
matches = cache._search('title:="{}" '.format(title.replace('"', '\\"')), None)

calibre/gui2/dialogs/catalog_ui.py row 80
# self.label_2.setText(_("Catalog &title (existing catalog with the same title will be replaced):"))
self.label_2.setText(_("Catalog &title (existing book with the same title will be replaced):"))