mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
fc14525e24
commit
a0e6bbe2bf
@ -50,6 +50,8 @@ except AttributeError:
|
||||
def load_qicon(name):
|
||||
if isinstance(name, QIcon):
|
||||
return name
|
||||
if not name:
|
||||
return QIcon()
|
||||
if not os.path.isabs(name):
|
||||
name = I(name)
|
||||
return QIcon(name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user