Protect update() from accesing deleted domains

This commit is contained in:
donoban 2018-07-12 01:17:48 +02:00
parent 06f7262140
commit bd919e44c1
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -139,15 +139,21 @@ class VmRowInTable(object):
widget will extract the data from VM object
:return: None
"""
self.info_widget.update_vm_state()
self.template_widget.update()
self.netvm_widget.update()
self.internal_widget.update()
self.ip_widget.update()
self.include_in_backups_widget.update()
self.last_backup_widget.update()
if update_size_on_disk:
self.size_widget.update()
try:
self.info_widget.update_vm_state()
self.template_widget.update()
self.netvm_widget.update()
self.internal_widget.update()
self.ip_widget.update()
self.include_in_backups_widget.update()
self.last_backup_widget.update()
if update_size_on_disk:
self.size_widget.update()
except exc.QubesPropertyAccessError:
pass
#force re-sorting
self.table.setSortingEnabled(True)
vm_shutdown_timeout = 20000 # in msec