From fa6db59ba31fddb27d099de600afae1668fc5aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Sat, 8 Dec 2018 23:09:39 +0100 Subject: [PATCH] Changed to not force default netvm in Create New VM To avoid conflict with scripts that make whonix magic, if the user selects default netvm, we do not set any netvm and trust the create_vm method to properly set it as default appropriate for the given template. fixes QubesOS/qubes-issues#1954 --- qubesmanager/create_new_vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubesmanager/create_new_vm.py b/qubesmanager/create_new_vm.py index 5949833..e148e04 100644 --- a/qubesmanager/create_new_vm.py +++ b/qubesmanager/create_new_vm.py @@ -154,7 +154,8 @@ class NewVmDlg(QtGui.QDialog, Ui_NewVMDlg): properties = {} properties['provides_network'] = self.provides_network.isChecked() - properties['netvm'] = self.netvm_list[self.netvm.currentIndex()] + if self.netvm.currentIndex() != 0: + properties['netvm'] = self.netvm_list[self.netvm.currentIndex()] if self.install_system.isChecked(): properties['virt_mode'] = 'hvm' properties['kernel'] = None