Fix to follow API change: template_vm -> template
This commit is contained in:
parent
e63813d519
commit
7fe79ba9f2
@ -824,7 +824,7 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
|
||||
|
||||
default_index = 0
|
||||
for (i, vm) in enumerate(template_vm_list):
|
||||
if vm is self.qvm_collection.get_default_template_vm():
|
||||
if vm is self.qvm_collection.get_default_template():
|
||||
default_index = i
|
||||
dialog.template_name.insertItem(i, vm.name + " (default)")
|
||||
else:
|
||||
|
@ -184,7 +184,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
||||
self.template_idx = 0
|
||||
for (i, vm) in enumerate(template_vm_list):
|
||||
text = vm.name
|
||||
if vm is self.qvm_collection.get_default_template_vm():
|
||||
if vm is self.qvm_collection.get_default_template():
|
||||
text += " (default)"
|
||||
if vm.qid == self.vm.template.qid:
|
||||
self.template_idx = i
|
||||
|
Loading…
Reference in New Issue
Block a user