aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-03 18:44:24 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-03 18:44:24 +0800
commitb31d50fb0533f178263d8ce111b56517dd0faf9a (patch)
tree69c4aa84a3d0b14646fd0b75dd69d8a300974454 /libempathy
parentf4d060f23d99950a2686fc1dffa2101fd855e82a (diff)
downloadgsoc2013-empathy-b31d50fb0533f178263d8ce111b56517dd0faf9a.tar
gsoc2013-empathy-b31d50fb0533f178263d8ce111b56517dd0faf9a.tar.gz
gsoc2013-empathy-b31d50fb0533f178263d8ce111b56517dd0faf9a.tar.bz2
gsoc2013-empathy-b31d50fb0533f178263d8ce111b56517dd0faf9a.tar.lz
gsoc2013-empathy-b31d50fb0533f178263d8ce111b56517dd0faf9a.tar.xz
gsoc2013-empathy-b31d50fb0533f178263d8ce111b56517dd0faf9a.tar.zst
gsoc2013-empathy-b31d50fb0533f178263d8ce111b56517dd0faf9a.zip
empathy_account_settings_set_display_name_async: don't do anything if not needed
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-account-settings.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 78b14456e..a67fc20cd 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -950,6 +950,13 @@ empathy_account_settings_set_display_name_async (
result = g_simple_async_result_new (G_OBJECT (settings),
callback, user_data, empathy_account_settings_set_display_name_finish);
+ if (!tp_strdiff (name, priv->display_name))
+ {
+ /* Nothing to do */
+ g_simple_async_result_complete_in_idle (result);
+ return;
+ }
+
if (priv->account == NULL)
{
if (priv->display_name != NULL)