aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-06-19 20:47:52 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-06-19 20:47:52 +0800
commit8be8655930e30adab5cedb41c0bb03e6c1305189 (patch)
tree3964c5cbda41efc05205623d7701db5f2944d724 /libempathy/empathy-contact.c
parentf5ede7e42080f28a9dcd78420d72db4bea022579 (diff)
downloadgsoc2013-empathy-8be8655930e30adab5cedb41c0bb03e6c1305189.tar
gsoc2013-empathy-8be8655930e30adab5cedb41c0bb03e6c1305189.tar.gz
gsoc2013-empathy-8be8655930e30adab5cedb41c0bb03e6c1305189.tar.bz2
gsoc2013-empathy-8be8655930e30adab5cedb41c0bb03e6c1305189.tar.lz
gsoc2013-empathy-8be8655930e30adab5cedb41c0bb03e6c1305189.tar.xz
gsoc2013-empathy-8be8655930e30adab5cedb41c0bb03e6c1305189.tar.zst
gsoc2013-empathy-8be8655930e30adab5cedb41c0bb03e6c1305189.zip
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
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c2
1 files changed, 1 insertions, 1 deletions
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);
}