Explorar o código

Merge remote-tracking branch 'origin/pr/267'

* origin/pr/267:
  Fixed incorrect virtmode check (ignored PVH when it was the default)
Marek Marczykowski-Górecki %!s(int64=3) %!d(string=hai) anos
pai
achega
0ba5ea648f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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: