Fixed error in qube manager of change of global settings

Changing global properties fired an event that crashed qube
manager.

fixes QubesOS/qubes-issues#4385
This commit is contained in:
Marta Marczykowska-Górecka 2018-10-19 20:06:30 +02:00
parent 693f3e411c
commit 77cf9bf1d2
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -476,6 +476,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
row.info_widget.update_vm_state()
def on_domain_changed(self, vm, _event, **_kwargs):
if not vm: # change of global properties occured
return
try:
self.vms_in_table[vm.qid].update()
except exc.QubesPropertyAccessError: