Fixed netvm column.
This commit is contained in:
parent
6d0a247997
commit
68d73dd014
@ -189,8 +189,8 @@ class VmNetvmItem (QTableWidgetItem):
|
|||||||
def __init__(self, vm):
|
def __init__(self, vm):
|
||||||
super(VmNetvmItem, self).__init__()
|
super(VmNetvmItem, self).__init__()
|
||||||
|
|
||||||
if vm.is_netvm():
|
if vm.is_netvm() and not vm.is_proxyvm():
|
||||||
self.setText("self")
|
self.setText("n/a")
|
||||||
elif vm.netvm_vm is not None:
|
elif vm.netvm_vm is not None:
|
||||||
self.setText(vm.netvm_vm.name)
|
self.setText(vm.netvm_vm.name)
|
||||||
else:
|
else:
|
||||||
@ -199,7 +199,6 @@ class VmNetvmItem (QTableWidgetItem):
|
|||||||
self.setTextAlignment(Qt.AlignHCenter)
|
self.setTextAlignment(Qt.AlignHCenter)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class VmUsageBarWidget (QWidget):
|
class VmUsageBarWidget (QWidget):
|
||||||
|
|
||||||
class VmUsageBarItem (QTableWidgetItem):
|
class VmUsageBarItem (QTableWidgetItem):
|
||||||
|
Loading…
Reference in New Issue
Block a user