Skip to content

Commit

Permalink
Fixed incorrect virtmode check (ignored PVH when it was the default)
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarta committed Oct 7, 2020
1 parent 70b8f0c commit 90a33f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qubesmanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,9 @@ def devices_selection_changed(self):
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:
Expand Down

0 comments on commit 90a33f7

Please sign in to comment.