Fixed bug with template selection
Template in VM settings was not displayed correctly. It should work now.
This commit is contained in:
parent
2be8f8bcea
commit
0ec3c704dd
@ -307,9 +307,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
|||||||
self.vm, 'template',
|
self.vm, 'template',
|
||||||
self.vm.app.default_template,
|
self.vm.app.default_template,
|
||||||
(lambda vm: vm.klass == 'TemplateVM'),
|
(lambda vm: vm.klass == 'TemplateVM'),
|
||||||
allow_default=False, allow_none=False,
|
allow_default=False, allow_none=False)
|
||||||
transform=(lambda x: x if x != self.vm.app.default_template
|
|
||||||
else x + self.tr(' (default)')))
|
|
||||||
else:
|
else:
|
||||||
self.template_name.setEnabled(False)
|
self.template_name.setEnabled(False)
|
||||||
self.template_idx = -1
|
self.template_idx = -1
|
||||||
|
Loading…
Reference in New Issue
Block a user