Fixed trailing '>' in message view which appeared after HTLM rendering

This commit is contained in:
Dmitri Bogomolov 2018-02-08 12:58:38 +02:00
parent f870bcc6f7
commit bbb5e5d99b
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class MessageView(QtGui.QTextBrowser):
if self.mode == MessageView.MODE_HTML:
pos = self.out.find(">", self.outpos)
if pos > self.outpos:
self.outpos = pos
self.outpos = pos + 1
cursor.movePosition(QtGui.QTextCursor.End, QtGui.QTextCursor.MoveAnchor)
cursor.insertHtml(QtCore.QString(self.out[startpos:self.outpos]))
self.verticalScrollBar().setValue(position)