From 7fe79ba9f2acab1e2cec66580bf18e7e32685da6 Mon Sep 17 00:00:00 2001 From: Agnieszka Kostrzewa Date: Mon, 12 Mar 2012 13:52:42 +0100 Subject: [PATCH] Fix to follow API change: template_vm -> template --- qubesmanager/main.py | 2 +- qubesmanager/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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