Browse Source

Fix bug with fixed bug in VM Settings

fixes QubesOS/qubes-issues#4866
Marta Marczykowska-Górecka 5 years ago
parent
commit
1c06d241f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qubesmanager/settings.py

+ 1 - 1
qubesmanager/settings.py

@@ -855,7 +855,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
     def update_virt_mode_list(self):
         choices = ['HVM', 'PV']
 
-        if self.dev_list:
+        if hasattr(self, "dev_list"):
             devs_attached = self.dev_list.selected_list.count() != 0
         else:
             devs_attached = bool(list(self.vm.devices['pci'].persistent()))