aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index bfa9966da..f84dff4a1 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -411,12 +411,12 @@ empathy_contact_set_name (EmpathyContact *contact,
priv = GET_PRIV (contact);
g_object_ref (contact);
- contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_NAME);
if (tp_strdiff (name, priv->name)) {
g_free (priv->name);
priv->name = g_strdup (name);
g_object_notify (G_OBJECT (contact), "name");
}
+ contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_NAME);
g_object_unref (contact);
}
@@ -577,11 +577,11 @@ empathy_contact_set_handle (EmpathyContact *contact,
priv = GET_PRIV (contact);
g_object_ref (contact);
- contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_HANDLE);
if (handle != priv->handle) {
priv->handle = handle;
g_object_notify (G_OBJECT (contact), "handle");
}
+ contact_set_ready_flag (contact, EMPATHY_CONTACT_READY_HANDLE);
g_object_unref (contact);
}