Fixed netvm column.
This commit is contained in:
parent
6d0a247997
commit
68d73dd014
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user