Only ask to convert existing when there are already converted books.

This commit is contained in:
John Schember 2009-09-05 08:12:27 -04:00
parent 1673aa3829
commit 5196f6d006

View File

@ -198,6 +198,7 @@ def convert_existing(parent, db, book_ids, output_format):
already_converted_ids.append(book_id) already_converted_ids.append(book_id)
already_converted_titles.append(db.get_metadata(book_id, True).title) already_converted_titles.append(db.get_metadata(book_id, True).title)
if already_converted_ids:
if not question_dialog(parent, _('Convert existing'), if not question_dialog(parent, _('Convert existing'),
_('The following books have already been converted to %s format. ' _('The following books have already been converted to %s format. '
'Do you wish to reconvert them?') % output_format, 'Do you wish to reconvert them?') % output_format,