Fix to follow API change: template_vm -> template

This commit is contained in:
Agnieszka Kostrzewa 2012-03-12 13:52:42 +01:00
parent e63813d519
commit 7fe79ba9f2
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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