Fixed netvm column.

This commit is contained in:
Agnieszka Kostrzewa 2012-02-22 06:15:11 +01:00
parent 6d0a247997
commit 68d73dd014

View File

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