Fixed icns importing.
This commit is contained in:
parent
a7395cce2b
commit
3a053fe76a
3 changed files with 27 additions and 25 deletions
3
main.py
3
main.py
|
|
@ -863,7 +863,8 @@ class MainWindow(QtGui.QMainWindow, CommandBase):
|
|||
if icon_path.endswith('.icns'):
|
||||
pngs = pngs_from_icns(icon_path)
|
||||
if pngs:
|
||||
image = QtGui.QImage.fromData(QtCore.QByteArray(pngs[-1].data), 'PNG')
|
||||
ba = QtCore.QByteArray(pngs[-1].data)
|
||||
image = QtGui.QImage.fromData(ba, 'PNG')
|
||||
else:
|
||||
return
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue