Prevent str -> unicode conversion of inventoryHash

This commit is contained in:
Dmitri Bogomolov 2018-02-22 13:23:51 +02:00
parent 4255f96d0f
commit a83c75e647
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -2396,8 +2396,7 @@ class MyForm(settingsmixin.SMainWindow):
self.getCurrentSearchLine(tab)
):
continue
# inventoryHash surprisingly is of type unicode
inventoryHash = inventoryHash.encode('utf-8')
if tableWidget == inbox \
and self.getCurrentAccount(treeWidget) == acct.address \
and self.getCurrentFolder(treeWidget) \