Do not allow setting dom0 as any system VM
Fixes QubesOS/qubes-issues#1379
This commit is contained in:
parent
1021d718a7
commit
eac2df7e18
@ -73,7 +73,8 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog):
|
|||||||
|
|
||||||
def __init_system_defaults__(self):
|
def __init_system_defaults__(self):
|
||||||
#updatevm and clockvm
|
#updatevm and clockvm
|
||||||
all_vms = [vm for vm in self.qvm_collection.values() if not vm.internal]
|
all_vms = [vm for vm in self.qvm_collection.values() if not
|
||||||
|
vm.internal and vm.qid != 0]
|
||||||
self.updatevm_idx = -1
|
self.updatevm_idx = -1
|
||||||
|
|
||||||
current_update_vm = self.qvm_collection.get_updatevm_vm()
|
current_update_vm = self.qvm_collection.get_updatevm_vm()
|
||||||
@ -104,7 +105,7 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog):
|
|||||||
self.clock_vm_combo.setCurrentIndex(self.clockvm_idx)
|
self.clock_vm_combo.setCurrentIndex(self.clockvm_idx)
|
||||||
|
|
||||||
#default netvm
|
#default netvm
|
||||||
netvms = [vm for vm in all_vms if vm.is_netvm() and vm.qid != 0]
|
netvms = [vm for vm in all_vms if vm.is_netvm()]
|
||||||
self.netvm_idx = -1
|
self.netvm_idx = -1
|
||||||
|
|
||||||
current_netvm = self.qvm_collection.get_default_netvm()
|
current_netvm = self.qvm_collection.get_default_netvm()
|
||||||
|
Loading…
Reference in New Issue
Block a user