mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a typo that causes calibre to crash when connecting a device with the cover grid visible
This commit is contained in:
parent
78553a8284
commit
1207eb4f8b
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user