Subject appeared to be str

This commit is contained in:
Dmitri Bogomolov 2019-05-22 11:58:45 +03:00
parent 4a097e99b3
commit 828f4d207f
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ class MessageList_SubjectWidget(BMTableWidgetItem):
if role == QtCore.Qt.UserRole:
return self.subject
if role == QtCore.Qt.ToolTipRole:
return escape(self.subject)
return escape(unicode(self.subject, 'utf-8'))
return super(MessageList_SubjectWidget, self).data(role)
# label (or address) alphabetically, disabled at the end