diff --git a/src/virtManager/details.py b/src/virtManager/details.py index e3b52ac39..cea3bb56b 100644 --- a/src/virtManager/details.py +++ b/src/virtManager/details.py @@ -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() diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py index f479bae51..7c3ae1cfc 100644 --- a/src/virtManager/domain.py +++ b/src/virtManager/domain.py @@ -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: