This commit is contained in:
Kovid Goyal 2022-01-09 05:55:50 +05:30
parent 9a77da3df7
commit e6eca4eb0e
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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)