mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user