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,8 +151,12 @@ class VmLabelWidget(VmIconWidget):
self.tableItem = self.VmLabelItem(self.value)
def get_vm_icon_path(self, vm):
self.value = vm.label.index
return vm.label.icon_path
if vm.qid == 0:
self.value = 100
return ":/off.png"
else:
self.value = vm.label.index
return vm.label.icon_path