From 90a33f716eb459886957d457ef6bba305a33e947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Wed, 7 Oct 2020 19:13:27 +0200 Subject: [PATCH] Fixed incorrect virtmode check (ignored PVH when it was the default) fixes QubesOS/qubes-issues#6108 --- qubesmanager/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index ff22b16..c55a266 100644 --- a/qubesmanager/settings.py +++ b/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: