loadResource incorrect parameters

This commit is contained in:
mailchuck 2016-03-12 09:07:16 +01:00 committed by Peter Surda
parent a79f6cce3b
commit ed5c8a01ef

View File

@ -61,7 +61,7 @@ class MessageView(QtGui.QTextBrowser):
if reply == QtGui.QMessageBox.Yes: if reply == QtGui.QMessageBox.Yes:
QtGui.QDesktopServices.openUrl(link) QtGui.QDesktopServices.openUrl(link)
def loadResource (restype, name): def loadResource (self, restype, name):
if restype == QtGui.QTextDocument.ImageResource and name.scheme() == "bmmsg": if restype == QtGui.QTextDocument.ImageResource and name.scheme() == "bmmsg":
pass pass
# QImage correctImage; # QImage correctImage;