One more unicode related exception - when editing subscription label #1074

Merged
g1itch merged 1 commits from ui-fixes into v0.6 2017-10-19 18:05:52 +02:00

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)