From 8be8655930e30adab5cedb41c0bb03e6c1305189 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 19 Jun 2008 12:47:52 +0000 Subject: don't set the flag to ready if we are not yet ready, especially when we send a glib signal meanwhile, letting the opportunity to enter in the mainloop svn path=/trunk/; revision=1178 --- libempathy/empathy-contact.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index e511144bf..48e045425 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -370,7 +370,6 @@ empathy_contact_set_id (EmpathyContact *contact, /* We temporally ref the contact because it could be destroyed * during the signal emition */ g_object_ref (contact); - contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_ID); if (tp_strdiff (id, priv->id)) { g_free (priv->id); priv->id = g_strdup (id); @@ -380,6 +379,7 @@ empathy_contact_set_id (EmpathyContact *contact, g_object_notify (G_OBJECT (contact), "name"); } } + contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_ID); g_object_unref (contact); } -- cgit v1.2.3