Label change fix

- when changing an addressbook label using UTF-8, the correspnding
  messagelist label was garbled
This commit is contained in:
Peter Šurda 2016-10-25 07:54:52 +02:00
parent a3584bb141
commit 30d9de008f
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -312,7 +312,7 @@ class MessageList_AddressWidget(QtGui.QTableWidgetItem, AccountMixin, SettingsMi
if queryreturn is not None: if queryreturn is not None:
if queryreturn != []: if queryreturn != []:
for row in queryreturn: for row in queryreturn:
newLabel, = row newLabel = unicode(row[0], 'utf-8', 'ignore')
else: else:
newLabel = label newLabel = label
if hasattr(self, 'label') and newLabel == self.label: if hasattr(self, 'label') and newLabel == self.label: