Parcourir la source

Fixed incorrect virtmode check (ignored PVH when it was the default)

fixes QubesOS/qubes-issues#6108
Marta Marczykowska-Górecka il y a 3 ans
Parent
commit
90a33f716e
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      qubesmanager/settings.py

+ 3 - 1
qubesmanager/settings.py

@@ -1229,7 +1229,9 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog):
         self.update_virt_mode_list()
 
     def update_pvh_dont_support_devs(self):
-        if self.virt_mode.currentData() == 'pvh':
+        # this is the easiest way to check for both normal 'PVH' and
+        # default (PVH) options
+        if 'PVH' in self.virt_mode.currentText().upper():
             self.dev_list.setEnabled(False)
             self.pvh_dont_support_devs.setVisible(True)
         else: