aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Tellier <jonathan.tellier@gmail.com>2009-08-27 02:36:19 +0800
committerjtellier <jonathan.tellier@collabora.co.uk>2009-08-27 21:03:38 +0800
commit28c3c1f834345cf6da157262841e2731feaf85ed (patch)
tree3f91f096bee0fead3490bffdf9a186b492221180
parent5a464a08117785832583bdf720288502410952aa (diff)
downloadgsoc2013-empathy-28c3c1f834345cf6da157262841e2731feaf85ed.tar
gsoc2013-empathy-28c3c1f834345cf6da157262841e2731feaf85ed.tar.gz
gsoc2013-empathy-28c3c1f834345cf6da157262841e2731feaf85ed.tar.bz2
gsoc2013-empathy-28c3c1f834345cf6da157262841e2731feaf85ed.tar.lz
gsoc2013-empathy-28c3c1f834345cf6da157262841e2731feaf85ed.tar.xz
gsoc2013-empathy-28c3c1f834345cf6da157262841e2731feaf85ed.tar.zst
gsoc2013-empathy-28c3c1f834345cf6da157262841e2731feaf85ed.zip
Only setting the display name to the Login ID for protocol which have
this property.
-rw-r--r--src/empathy-accounts-dialog.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 8a3d35531..89e1adc17 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -190,11 +190,15 @@ empathy_account_dialog_account_created_cb (EmpathyAccountWidget *widget_object,
EmpathyAccountSettings *settings =
accounts_dialog_model_get_selected_settings (dialog);
- /* Setting the display name to the login ID. */
+ /* Setting the display name to the login ID (if there is one). */
default_display_name = empathy_account_settings_get_string (settings,
"account");
- empathy_account_settings_set_display_name_async (settings,
- default_display_name, NULL, NULL);
+
+ if (default_display_name != NULL)
+ {
+ empathy_account_settings_set_display_name_async (settings,
+ default_display_name, NULL, NULL);
+ }
accounts_dialog_update_settings (dialog, settings);