[empathy: 2/5] empathy_account_settings_set_display_name_async: don't do anything if not needed
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 2/5] empathy_account_settings_set_display_name_async: don't do anything if not needed
- Date: Wed, 3 Mar 2010 10:55:14 +0000 (UTC)
commit b31d50fb0533f178263d8ce111b56517dd0faf9a
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Mar 3 11:44:24 2010 +0100
empathy_account_settings_set_display_name_async: don't do anything if not needed
libempathy/empathy-account-settings.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 78b1445..a67fc20 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]