From a4c63cc9397d47a85ef6f07aefa0f4044d65a77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Sun, 22 Jul 2018 23:57:50 +0200 Subject: [PATCH] And also fixed problem with setting default template to None The bug was the same. --- qubesmanager/global_settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubesmanager/global_settings.py b/qubesmanager/global_settings.py index 7f4fb11..2863046 100644 --- a/qubesmanager/global_settings.py +++ b/qubesmanager/global_settings.py @@ -89,7 +89,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings, self.default_template_combo, self.qvm_collection, 'default_template', None, - filter_function=(lambda vm: vm.klass == 'TemplateVM') + filter_function=(lambda vm: vm.klass == 'TemplateVM'), + allow_none=True ) # default dispvm