details: Don't poll XML if using domain events

This commit is contained in:
Cole Robinson 2014-02-11 15:02:24 -05:00
parent e0381cc970
commit e42835b0ff

View File

@ -2379,7 +2379,7 @@ class vmmDetails(vmmGObjectUI):
# If the dialog is visible, we want to make sure the XML is always
# up to date
try:
if self.is_visible():
if self.is_visible() and not self.conn.using_domain_events:
self.vm.refresh_xml()
except libvirt.libvirtError, e:
if util.exception_is_libvirt_error(e, "VIR_ERR_NO_DOMAIN"):