settings: hide "add all" widget from devices tab
It is very dangerous - adding all the devices to some VM will make the system unusable once such VM is started.
This commit is contained in:
parent
c8a8a56c73
commit
97620f76a7
@ -651,6 +651,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
|||||||
######## devices tab
|
######## devices tab
|
||||||
def __init_devices_tab__(self):
|
def __init_devices_tab__(self):
|
||||||
self.dev_list = MultiSelectWidget(self)
|
self.dev_list = MultiSelectWidget(self)
|
||||||
|
self.dev_list.add_all_button.setVisible(False)
|
||||||
self.devices_layout.addWidget(self.dev_list)
|
self.devices_layout.addWidget(self.dev_list)
|
||||||
|
|
||||||
devs = []
|
devs = []
|
||||||
@ -662,6 +663,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
|||||||
def __init__(self, name, slot, parent = None):
|
def __init__(self, name, slot, parent = None):
|
||||||
super(DevListWidgetItem, self).__init__(name, parent)
|
super(DevListWidgetItem, self).__init__(name, parent)
|
||||||
self.slot = slot
|
self.slot = slot
|
||||||
|
self.Type
|
||||||
|
|
||||||
for d in devs:
|
for d in devs:
|
||||||
if d[1] in self.vm.pcidevs:
|
if d[1] in self.vm.pcidevs:
|
||||||
|
Loading…
Reference in New Issue
Block a user