Fix a typo that causes calibre to crash when connecting a device with the cover grid visible

This commit is contained in:
Kovid Goyal 2016-08-26 12:07:58 +05:30
parent 78553a8284
commit 1207eb4f8b

View File

@ -420,7 +420,7 @@ class CoverDelegate(QStyledItemDelegate):
if raw_icon is not None:
ans = raw_icon.pixmap(sz, sz)
elif name == ':ondevice':
ans = QIcon(I('ok.png')).scaled(sz, sz)
ans = QIcon(I('ok.png')).pixmap(sz, sz)
elif name:
pmap = QIcon(os.path.join(config_dir, 'cc_icons', name)).pixmap(sz, sz)
if not pmap.isNull():