From 68d73dd0143bc479ba244b4b57e48e0094ecde7c Mon Sep 17 00:00:00 2001 From: Agnieszka Kostrzewa Date: Wed, 22 Feb 2012 06:15:11 +0100 Subject: [PATCH] Fixed netvm column. --- qubesmanager/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 5f578cc..0fa0cdc 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -189,8 +189,8 @@ class VmNetvmItem (QTableWidgetItem): def __init__(self, vm): super(VmNetvmItem, self).__init__() - if vm.is_netvm(): - self.setText("self") + if vm.is_netvm() and not vm.is_proxyvm(): + self.setText("n/a") elif vm.netvm_vm is not None: self.setText(vm.netvm_vm.name) else: @@ -199,7 +199,6 @@ class VmNetvmItem (QTableWidgetItem): self.setTextAlignment(Qt.AlignHCenter) - class VmUsageBarWidget (QWidget): class VmUsageBarItem (QTableWidgetItem):