mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:33:08 +02:00
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:
parent
5b3376c3f5
commit
97b20f38f5
1 changed files with 3 additions and 3 deletions
|
|
@ -490,9 +490,9 @@ def finish(self):
|
|||
'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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue