Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
b2bcc00e1d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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()