Fix #1822018 [Does not auto-convert when adding existing book with overwrite selected](https://bugs.launchpad.net/calibre/+bug/1822018)

This commit is contained in:
Kovid Goyal 2019-04-28 18:25:52 +05:30
parent 5b3376c3f5
commit 97b20f38f5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -490,9 +490,9 @@ class Adder(QObject):
'Failed to add any books, click "Show details" for more information')
d(self.pd, _('Errors while adding'), msg, det_msg='\n'.join(self.report), show=True)
if gprefs['manual_add_auto_convert'] and self.added_book_ids and self.parent() is not None:
self.parent().iactions['Convert Books'].auto_convert_auto_add(
self.added_book_ids | self.merged_formats_added_to)
potentially_convertible = self.added_book_ids | self.merged_formats_added_to
if gprefs['manual_add_auto_convert'] and potentially_convertible and self.parent() is not None:
self.parent().iactions['Convert Books'].auto_convert_auto_add(potentially_convertible)
try:
if callable(self.callback):