parent
d56cee5023
commit
1c06d241f0
@ -855,7 +855,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
|||||||
def update_virt_mode_list(self):
|
def update_virt_mode_list(self):
|
||||||
choices = ['HVM', 'PV']
|
choices = ['HVM', 'PV']
|
||||||
|
|
||||||
if self.dev_list:
|
if hasattr(self, "dev_list"):
|
||||||
devs_attached = self.dev_list.selected_list.count() != 0
|
devs_attached = self.dev_list.selected_list.count() != 0
|
||||||
else:
|
else:
|
||||||
devs_attached = bool(list(self.vm.devices['pci'].persistent()))
|
devs_attached = bool(list(self.vm.devices['pci'].persistent()))
|
||||||
|
Loading…
Reference in New Issue
Block a user