diff --git a/src/virtManager/connection.py b/src/virtManager/connection.py index 2aa390fed..1dfc55d9d 100644 --- a/src/virtManager/connection.py +++ b/src/virtManager/connection.py @@ -483,6 +483,8 @@ class vmmConnection(gobject.GObject): logging.debug("Notifying open result") try: + gobject.idle_add(util.idle_emit, self, "state-changed") + if self.state == self.STATE_ACTIVE: logging.debug("%s capabilities:\n%s" % (self.get_uri(), self.vmm.getCapabilities())) @@ -494,8 +496,6 @@ class vmmConnection(gobject.GObject): self.config.reconcile_vm_entries(self.get_uri(), self.vms.keys()) - gobject.idle_add(util.idle_emit, self, "state-changed") - if self.state == self.STATE_DISCONNECTED: gobject.idle_add(util.idle_emit, self, "connect-error", self.connectError)