From 4a3240bf1af6e38efa82f593a1d4454c3be78fa0 Mon Sep 17 00:00:00 2001 From: yaqu Date: Mon, 9 Jan 2017 23:31:49 +0100 Subject: [PATCH] Fix for UnicodeEncodeError in search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Entering non-ascii characters (e.g. "ą") in search causes an UnicodeEncodeError. This is a quick fix. Fixes QubesOS/qubes-issues#2562 --- qubesmanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 90d941a..007ae07 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -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()