Fix unicode bug introduced in 045a2ef

This commit is contained in:
Dmitri Bogomolov 2020-05-24 14:08:14 +03:00
parent 87e3d63340
commit c69decaab3
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -3953,7 +3953,7 @@ class MyForm(settingsmixin.SMainWindow):
def inboxSearchLineEditUpdated(self, text):
# dynamic search for too short text is slow
text = str(text)
text = text.toUtf8()
if 0 < len(text) < 3:
return
messagelist = self.getCurrentMessagelist()