From b8733f2b709ec789f472fb755f7fd0dfadba9a84 Mon Sep 17 00:00:00 2001 From: Agnieszka Kostrzewa Date: Fri, 27 Apr 2012 10:58:10 +0200 Subject: [PATCH] No label icon for Dom0 (#545) --- qubesmanager/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 8e88a17..02e5735 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -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