More unicode fixes

Addresses #180
This commit is contained in:
mailchuck 2016-03-12 11:03:08 +01:00
parent 6c4ef64d96
commit c6b4237ba1
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -434,7 +434,7 @@ class Ui_AddressBookWidgetItem(QtGui.QTableWidgetItem, AccountMixin):
def setData(self, role, value):
if role == QtCore.Qt.EditRole:
if isinstance(value, QtCore.QVariant):
self.label = str(value.toString())
self.label = str(value.toString().toUtf8())
else:
self.label = str(value)
if self.type in (AccountMixin.NORMAL, AccountMixin.MAILINGLIST, AccountMixin.CHAN):