No label icon for Dom0 (#545)

This commit is contained in:
Agnieszka Kostrzewa 2012-04-27 10:58:10 +02:00
parent 9d4e58c8d4
commit b8733f2b70

View File

@ -151,6 +151,10 @@ class VmLabelWidget(VmIconWidget):
self.tableItem = self.VmLabelItem(self.value)
def get_vm_icon_path(self, vm):
if vm.qid == 0:
self.value = 100
return ":/off.png"
else:
self.value = vm.label.index
return vm.label.icon_path