From 61566c4ae43f312ed102eb1586e4aeb50dc03e6c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 9 Oct 2012 11:36:28 +0100 Subject: [PATCH 7/7] mcd_account_self_contact_changed_cb: ignore no-op changes --- src/mcd-account.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mcd-account.c b/src/mcd-account.c index ef613fa..f26dd1d 100644 --- a/src/mcd-account.c +++ b/src/mcd-account.c @@ -4815,11 +4815,11 @@ mcd_account_self_contact_changed_cb (McdAccount *self, DEBUG ("%s", tp_contact_get_identifier (self_contact)); - if (self_contact != self->priv->self_contact) - { - g_clear_object (&self->priv->self_contact); - self->priv->self_contact = g_object_ref (self_contact); - } + if (self_contact == self->priv->self_contact) + return; + + g_clear_object (&self->priv->self_contact); + self->priv->self_contact = g_object_ref (self_contact); _mcd_account_set_normalized_name (self, tp_contact_get_identifier (self_contact)); -- 1.7.10.4