Fixed problem with setting default_dispvm to None in Global Settings

fixes QubesOS/qubes-issues#4114
This commit is contained in:
Marta Marczykowska-Górecka 2018-07-22 23:55:09 +02:00
parent 27a5c58b33
commit 6377983f9a
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -98,7 +98,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings,
self.default_dispvm_combo,
self.qvm_collection, 'default_dispvm',
None,
(lambda vm: getattr(vm, 'template_for_dispvms', False))
(lambda vm: getattr(vm, 'template_for_dispvms', False)),
allow_none=True
)
def __apply_system_defaults__(self):