[empathy: 2/5] Only setting the display name to the Login ID for protocol which have



commit 28c3c1f834345cf6da157262841e2731feaf85ed
Author: Jonathan Tellier <jonathan tellier gmail com>
Date:   Wed Aug 26 14:36:19 2009 -0400

    Only setting the display name to the Login ID for protocol which have
    this property.

 src/empathy-accounts-dialog.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 8a3d355..89e1adc 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]