Quick hack for excessively long messages
- only process the first MB of a message for GUI purposes (parsing/rendering)
This commit is contained in:
parent
82c3c111b7
commit
660997f8e7
|
@ -128,6 +128,7 @@ class MessageView(QtGui.QTextBrowser):
|
||||||
self.html.reset()
|
self.html.reset()
|
||||||
self.html.reset_safe()
|
self.html.reset_safe()
|
||||||
self.html.allow_picture = True
|
self.html.allow_picture = True
|
||||||
self.html.feed(data)
|
# quick hack to limit excessively compressed messages, limits viewing to first MB of data
|
||||||
|
self.html.feed(data[0:1048576])
|
||||||
self.html.close()
|
self.html.close()
|
||||||
self.showPlain()
|
self.showPlain()
|
||||||
|
|
Reference in New Issue
Block a user