瀏覽代碼

Revert "Fix for UnicodeEncodeError in search"

This reverts commit 4a3240bf1af6e38efa82f593a1d4454c3be78fa0.

VM names never contain any unicode characters, so this fix only
propagates the possibility of an encoding error to further down
the line, rather than removing it.

A proper fix would involve filtering the input to the search box
as we do with creating & renaming VMs.
Jean-Philippe Ouellet 7 年之前
父節點
當前提交
b2bcc00e1d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      qubesmanager/main.py

+ 1 - 1
qubesmanager/main.py

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