Subject: virt-manager: fix --show-host-summary error windows flooding From: Giuseppe Scrivano gscrivan@redhat.com Mon May 11 15:05:57 2015 +0200 Date: Mon May 11 20:20:10 2015 +0200: Git: 2c1e482b2df58e76624cb30625ce4bed0c663275 Break an endless loop vmmHost.overview_name_changed -> vmmHost.conn_state_changed -> vmmHost._overview_name_changed. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1220322 Signed-off-by: Giuseppe Scrivano Index: virt-manager-1.2.0/virtManager/connection.py =================================================================== --- virt-manager-1.2.0.orig/virtManager/connection.py +++ virt-manager-1.2.0/virtManager/connection.py @@ -1346,7 +1346,8 @@ class vmmConnection(vmmGObject): self.config.set_conn_autoconnect(self.get_uri(), val) def set_config_pretty_name(self, value): - self.config.set_perconn(self.get_uri(), "/pretty-name", value) + if value != self._get_config_pretty_name(): + self.config.set_perconn(self.get_uri(), "/pretty-name", value) def _get_config_pretty_name(self): return self.config.get_perconn(self.get_uri(), "/pretty-name") def _on_config_pretty_name_changed(self, *args, **kwargs):