This commit is contained in:
Kovid Goyal 2012-07-08 00:40:06 +05:30
parent 1fda8e97ee
commit 436965bd25

View File

@ -97,6 +97,9 @@ class MetadataWidget(Widget, Ui_Form):
else:
self.cover.setPixmap(QPixmap(I('default_cover.png')))
self.cover.setToolTip(_('This book has no cover'))
for x in ('author', 'series', 'publisher'):
x = getattr(self, x)
x.lineEdit().deselect()
def set_cover_tooltip(self, pm):
tt = _('Cover size: %(width)d x %(height)d pixels') % dict(