From 74a4fcd10ee9e5a3df9eb02cbb09970e9e28a0eb Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 3 Apr 2011 17:50:32 +0200 Subject: [PATCH] Don't display internal VMs (#155) --- qubesmanager/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 5328796..36d126f 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -493,9 +493,9 @@ class VmManagerWindow(QMainWindow): self.qvm_collection.unlock_db() if self.show_inactive_vms: - vms_list = [vm for vm in self.qvm_collection.values()] + vms_list = [vm for vm in self.qvm_collection.values() if not vm.internal] else: - vms_list = [vm for vm in self.qvm_collection.values() if vm.is_running()] + vms_list = [vm for vm in self.qvm_collection.values() if not vm.internal and vm.is_running()] no_vms = len (vms_list) vms_to_display = [] @@ -604,7 +604,7 @@ class VmManagerWindow(QMainWindow): dialog.vmlabel.insertItem(i, label.name) dialog.vmlabel.setItemIcon (i, QIcon(label.icon_path)) - template_vm_list = [vm for vm in self.qvm_collection.values() if vm.is_template()] + template_vm_list = [vm for vm in self.qvm_collection.values() if not vm.internal and vm.is_template()] default_index = 0 for (i, vm) in enumerate(template_vm_list):