diff --git a/qubesmanager/main.py b/qubesmanager/main.py index d4ab965..c6b80bc 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -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: diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 38e1242..0027386 100644 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -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