Fix a regression that caused a harmless error popup when displaying tooltips in the select format dialog

This commit is contained in:
Kovid Goyal 2019-03-14 11:57:27 +05:30
parent 5ab3c7b727
commit 6b9d4a16d5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -37,7 +37,7 @@ class Formats(QAbstractListModel):
fmt = self.fmts[row]
count = self.counts[fmt]
return _('There is one book with the {} format').format(fmt.upper()) if count == 1 else _(
'There are {count} books with the {fmt} format', count).format(
'There are {count} books with the {fmt} format').format(
count=count, fmt=fmt.upper())
return None