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:
Marek Marczykowski-Górecki 2014-11-01 19:57:17 +01:00
parent c8a8a56c73
commit 97620f76a7

View File

@ -651,6 +651,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
######## devices tab
def __init_devices_tab__(self):
self.dev_list = MultiSelectWidget(self)
self.dev_list.add_all_button.setVisible(False)
self.devices_layout.addWidget(self.dev_list)
devs = []
@ -662,6 +663,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
def __init__(self, name, slot, parent = None):
super(DevListWidgetItem, self).__init__(name, parent)
self.slot = slot
self.Type
for d in devs:
if d[1] in self.vm.pcidevs: