Bug fix: QIcon problems with pyqt-4.8.4-1

This commit is contained in:
Kiooeht 2011-05-10 21:54:10 -07:00
parent 8af1b3873f
commit 433a4ec8c7

View file

@ -26,7 +26,7 @@ class PesterList(list):
class PesterIcon(QtGui.QIcon):
def __init__(self, *x, **y):
QtGui.QIcon.__init__(self, *x, **y)
QtGui.QIcon.__init__(self, x[0])
if type(x[0]) in [str, unicode]:
self.icon_pixmap = QtGui.QPixmap(x[0])
else: