From 9f3f61a5d0c6c11e9eca81bbedcfe7affa187148 Mon Sep 17 00:00:00 2001 From: donoban Date: Tue, 31 Dec 2019 17:29:39 +0100 Subject: [PATCH] When Template changes status, all AppVMs should update too --- qubesmanager/qube_manager.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index ae6d4a96..a2a22c3e 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -781,9 +781,12 @@ def on_domain_removed(self, _submitter, _event, **kwargs): self.qubes_model.layoutChanged.emit() return - def on_domain_status_changed(self, vm, _event, **_kwargs): + def on_domain_status_changed(self, vm, event, **_kwargs): try: - self.qubes_model.info_by_id[vm.qid].update() + self.qubes_model.info_by_id[vm.qid].update(event=event) + if vm.klass in {'TemplateVM'}: + for appvm in vm.appvms: + self.qubes_model.info_by_id[vm.qid].update("outdated") self.qubes_model.layoutChanged.emit() self.table_selection_changed() except exc.QubesPropertyAccessError: