Fixed bug with template selection

Template in VM settings was not displayed correctly. It should work now.
This commit is contained in:
Marta Marczykowska-Górecka 2018-02-06 15:38:20 +01:00
parent 2be8f8bcea
commit 0ec3c704dd
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -307,9 +307,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
self.vm, 'template',
self.vm.app.default_template,
(lambda vm: vm.klass == 'TemplateVM'),
allow_default=False, allow_none=False,
transform=(lambda x: x if x != self.vm.app.default_template
else x + self.tr(' (default)')))
allow_default=False, allow_none=False)
else:
self.template_name.setEnabled(False)
self.template_idx = -1