mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 02:32:33 -04:00
...
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user