aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-account.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libempathy/empathy-account.c b/libempathy/empathy-account.c
index 175bea64d..fb1b2756d 100644
--- a/libempathy/empathy-account.c
+++ b/libempathy/empathy-account.c
@@ -246,11 +246,12 @@ empathy_account_update (EmpathyAccount *account,
icon_name = tp_asv_get_string (properties, "Icon");
- if (!EMP_STR_EMPTY (icon_name))
- {
- g_free (priv->icon_name);
- priv->icon_name = g_strdup (icon_name);
- }
+ g_free (priv->icon_name);
+
+ if (EMP_STR_EMPTY (icon_name))
+ priv->icon_name = empathy_protocol_icon_name (priv->proto_name);
+ else
+ priv->icon_name = g_strdup (icon_name);
}
if (g_hash_table_lookup (properties, "Enabled") != NULL)