]> git.0d.be Git - empathy.git/commitdiff
don't set the flag to ready if we are not yet ready, especially when we send a glib...
authorXavier Claessens <xclaesse@src.gnome.org>
Thu, 19 Jun 2008 12:47:52 +0000 (12:47 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Thu, 19 Jun 2008 12:47:52 +0000 (12:47 +0000)
svn path=/trunk/; revision=1178

libempathy/empathy-contact.c

index e511144bf0638d549603a3e777c120a00092d868..48e0454254669515363e1ae17a77cce384a18a55 100644 (file)
@@ -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);
 }