Fix for UnicodeEncodeError in search

Entering non-ascii characters (e.g. "ą") in search
causes an UnicodeEncodeError. This is a quick fix.

Fixes QubesOS/qubes-issues#2562
This commit is contained in:
yaqu 2017-01-09 23:31:49 +01:00
parent c214c65589
commit 4a3240bf1a

View File

@ -719,7 +719,7 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
@pyqtSlot(str)
def do_search(self, search):
self.search = str(search)
self.search = unicode(search)
self.showhide_vms()
self.set_table_geom_size()