From eac2df7e188b53016c8add8eeada29e9cb9ad898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 17 Dec 2015 22:49:45 +0100 Subject: [PATCH] Do not allow setting dom0 as any system VM Fixes QubesOS/qubes-issues#1379 --- qubesmanager/global_settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qubesmanager/global_settings.py b/qubesmanager/global_settings.py index 1c21661..286df03 100644 --- a/qubesmanager/global_settings.py +++ b/qubesmanager/global_settings.py @@ -73,7 +73,8 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog): def __init_system_defaults__(self): #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 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) #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 current_netvm = self.qvm_collection.get_default_netvm()