Restore auto-convert on add

This commit is contained in:
Kovid Goyal 2014-11-12 16:29:18 +05:30
parent 7259bc8b08
commit 5981a4003d

View File

@ -410,6 +410,10 @@ 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)
try:
if callable(self.callback):
self.callback(self)