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

* origin/pr/267:
  Fixed incorrect virtmode check (ignored PVH when it was the default)
This commit is contained in:
Marek Marczykowski-Górecki 2020-10-10 03:10:54 +02:00
commit 0ba5ea648f
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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: