One more unicode related exception - when editing a contact label
This commit is contained in:
parent
9be36f2d78
commit
8fcdf51e57
|
@ -3885,7 +3885,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
self.rerenderMessagelistToLabels()
|
self.rerenderMessagelistToLabels()
|
||||||
completerList = self.ui.lineEditTo.completer().model().stringList()
|
completerList = self.ui.lineEditTo.completer().model().stringList()
|
||||||
for i in range(len(completerList)):
|
for i in range(len(completerList)):
|
||||||
if str(completerList[i]).endswith(" <" + item.address + ">"):
|
if unicode(completerList[i]).endswith(" <" + item.address + ">"):
|
||||||
completerList[i] = item.label + " <" + item.address + ">"
|
completerList[i] = item.label + " <" + item.address + ">"
|
||||||
self.ui.lineEditTo.completer().model().setStringList(completerList)
|
self.ui.lineEditTo.completer().model().setStringList(completerList)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user