Make sure we have updated XML when viewing VM details.

This commit is contained in:
Cole Robinson 2009-07-14 17:06:37 -04:00
parent 575ebc7077
commit 0eef04170c
2 changed files with 8 additions and 0 deletions

View File

@ -857,6 +857,11 @@ class vmmDetails(gobject.GObject):
details = self.window.get_widget("details-pages")
page = details.get_current_page()
# If the dialog is visible, we want to make sure the XML is always
# up to date
if self.is_visible():
self.vm.refresh_xml()
if (page == PAGE_DETAILS and
self.get_hw_selection(HW_LIST_COL_TYPE) == HW_LIST_TYPE_STATS):
self.refresh_stats_page()

View File

@ -110,6 +110,9 @@ class vmmDomain(gobject.GObject):
self._invalidate_xml()
return self.get_xml()
def refresh_xml(self):
self._update_xml()
def _xml_fetch_helper(self, refresh_if_necc):
# Helper to fetch xml with various options
if self._xml is None: