From af1bed903429d811b168c0aaad649237e3ebcbfc Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 22 Feb 2017 12:30:14 +0100 Subject: [PATCH] MessageView Unicode HTML fix - the HTML on/off click label should be unicode rather than str --- src/bitmessageqt/messageview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/messageview.py b/src/bitmessageqt/messageview.py index 36fe8320..40830a70 100644 --- a/src/bitmessageqt/messageview.py +++ b/src/bitmessageqt/messageview.py @@ -108,7 +108,7 @@ class MessageView(QtGui.QTextBrowser): self.mode = MessageView.MODE_PLAIN out = self.html.raw if self.html.has_html: - out = "
" + str(QtGui.QApplication.translate("MessageView", "HTML detected, click here to display")) + "

" + out + out = "
" + unicode(QtGui.QApplication.translate("MessageView", "HTML detected, click here to display")) + "

" + out self.out = out self.outpos = 0 self.setHtml("") @@ -117,7 +117,7 @@ class MessageView(QtGui.QTextBrowser): def showHTML(self): self.mode = MessageView.MODE_HTML out = self.html.sanitised - out = "
" + str(QtGui.QApplication.translate("MessageView", "Click here to disable HTML")) + "

" + out + out = "
" + unicode(QtGui.QApplication.translate("MessageView", "Click here to disable HTML")) + "

" + out self.out = out self.outpos = 0 self.setHtml("")