Commit 46d00adb authored by Guillaume Desmottes's avatar Guillaume Desmottes

assistant: always uses empathy_account_widget_get_default_display_name to get a better display name

EmpathyAccountSettings is created with a default display name such as "New
Jabber account". But once the account has been created we want to update it to
a more relevant name. (#611675)
parent 4a7553f1
......@@ -328,17 +328,14 @@ account_assistant_apply_account_cb (GObject *source,
empathy_account_settings_apply_finish (settings, result, &error);
if (empathy_account_settings_get_display_name (settings) == NULL)
{
/* set default display name */
display_name = empathy_account_widget_get_default_display_name (
priv->current_widget_object);
/* set default display name */
display_name = empathy_account_widget_get_default_display_name (
priv->current_widget_object);
empathy_account_settings_set_display_name_async (settings,
display_name, NULL, NULL);
empathy_account_settings_set_display_name_async (settings,
display_name, NULL, NULL);
g_free (display_name);
}
g_free (display_name);
priv->is_creating = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment