One more unicode related exception - when editing a contact label

This commit is contained in:
Dmitri Bogomolov 2017-10-18 22:03:06 +03:00
parent 9be36f2d78
commit 8fcdf51e57
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -3885,7 +3885,7 @@ class MyForm(settingsmixin.SMainWindow):
self.rerenderMessagelistToLabels()
completerList = self.ui.lineEditTo.completer().model().stringList()
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 + ">"
self.ui.lineEditTo.completer().model().setStringList(completerList)