mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 02:12:57 +02:00
...
This commit is contained in:
parent
9a77da3df7
commit
e6eca4eb0e
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@
|
|||
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…
Reference in a new issue