parent
da036c6b6b
commit
8d8cfe8555
|
@ -434,7 +434,7 @@ class Ui_AddressBookWidgetItem(QtGui.QTableWidgetItem, AccountMixin):
|
||||||
def setData(self, role, value):
|
def setData(self, role, value):
|
||||||
if role == QtCore.Qt.EditRole:
|
if role == QtCore.Qt.EditRole:
|
||||||
if isinstance(value, QtCore.QVariant):
|
if isinstance(value, QtCore.QVariant):
|
||||||
self.label = str(value.toString())
|
self.label = str(value.toString().toUtf8())
|
||||||
else:
|
else:
|
||||||
self.label = str(value)
|
self.label = str(value)
|
||||||
if self.type in (AccountMixin.NORMAL, AccountMixin.MAILINGLIST, AccountMixin.CHAN):
|
if self.type in (AccountMixin.NORMAL, AccountMixin.MAILINGLIST, AccountMixin.CHAN):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user