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

View File

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