Do not allow setting dom0 as default netvm

Fixes QubesOS/qubes-issues#1379
This commit is contained in:
Marek Marczykowski-Górecki 2015-12-13 01:21:41 +01:00
parent 59d9a5326d
commit 0f2e999230
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -104,7 +104,7 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog):
self.clock_vm_combo.setCurrentIndex(self.clockvm_idx)
#default netvm
netvms = [vm for vm in all_vms if vm.is_netvm()]
netvms = [vm for vm in all_vms if vm.is_netvm() and vm.qid != 0]
self.netvm_idx = -1
current_netvm = self.qvm_collection.get_default_netvm()