mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 00:43:32 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ def cached_emblem(self, cache, name, raw_icon=None):
|
|||
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…
Reference in a new issue