From bb7357781e87db24f5132b6edd7861b13c3731d7 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 3 Apr 2011 01:27:42 +0200 Subject: [PATCH] Show "StandaloneVM" instead of "--" if VMs isn't based on template Also for NetVM. --- qubesmanager/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index eeb5e70..f4f264a 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -104,8 +104,10 @@ class VmInfoWidget (QWidget): layout1 = QHBoxLayout() - if vm.is_appvm() or vm.is_disposablevm(): - self.label_tmpl = QLabel ("" + (vm.template_vm.name if vm.template_vm is not None else "--") + "") + if vm.template_vm is not None: + self.label_tmpl = QLabel ("" + (vm.template_vm.name) + "") + elif vm.is_appvm(): # and vm.template_vm is None + self.label_tmpl = QLabel ("StandaloneVM") elif vm.is_template(): self.label_tmpl = QLabel ("TemplateVM") elif vm.qid == 0: