And also fixed problem with setting default template to None

The bug was the same.
This commit is contained in:
Marta Marczykowska-Górecka 2018-07-22 23:57:50 +02:00
parent 6377983f9a
commit a4c63cc939
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -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