IGN:Fix convert existing feature

This commit is contained in:
Kovid Goyal 2009-09-05 08:44:12 -06:00
parent 901af7414a
commit e144a04d7b

View File

@ -198,10 +198,11 @@ def convert_existing(parent, db, book_ids, output_format):
already_converted_ids.append(book_id)
already_converted_titles.append(db.get_metadata(book_id, True).title)
if not question_dialog(parent, _('Convert existing'),
_('The following books have already been converted to %s format. '
'Do you wish to reconvert them?') % output_format,
'\n'.join(already_converted_titles)):
book_ids = [x for x in book_ids if x not in already_converted_ids]
if already_converted_ids:
if not question_dialog(parent, _('Convert existing'),
_('The following books have already been converted to %s format. '
'Do you wish to reconvert them?') % output_format,
'\n'.join(already_converted_titles)):
book_ids = [x for x in book_ids if x not in already_converted_ids]
return book_ids