|
@@ -89,7 +89,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings,
|
|
self.default_template_combo,
|
|
self.default_template_combo,
|
|
self.qvm_collection, 'default_template',
|
|
self.qvm_collection, 'default_template',
|
|
None,
|
|
None,
|
|
- filter_function=(lambda vm: vm.klass == 'TemplateVM')
|
|
|
|
|
|
+ filter_function=(lambda vm: vm.klass == 'TemplateVM'),
|
|
|
|
+ allow_none=True
|
|
)
|
|
)
|
|
|
|
|
|
# default dispvm
|
|
# default dispvm
|
|
@@ -98,7 +99,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings,
|
|
self.default_dispvm_combo,
|
|
self.default_dispvm_combo,
|
|
self.qvm_collection, 'default_dispvm',
|
|
self.qvm_collection, 'default_dispvm',
|
|
None,
|
|
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):
|
|
def __apply_system_defaults__(self):
|