Преглед изворни кода

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()