From cf217ac0fa960e3d479287b349d2d45f3c1cb213 Mon Sep 17 00:00:00 2001 From: Philip Van Hoof Date: Mon, 9 Jul 2007 11:44:11 +0000 Subject: [PATCH] The set_pass_func is not always the last to set pmo-trunk-r2647 --- src/modest-tny-account.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index 08f416b..ac3c94e 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -485,19 +485,20 @@ modest_tny_account_new_from_account (ModestAccountMgr *account_mgr, const gchar modest_account_mgr_free_account_data (account_mgr, account_data); return NULL; } - + + + /* This name is what shows up in the folder view -- so for some POP/IMAP/... server + * account, we set its name to the account of which it is part. */ + + if (account_data->display_name) + tny_account_set_name (tny_account, account_data->display_name); + tny_account_set_forget_pass_func (tny_account, forget_pass_func ? forget_pass_func : forget_pass_dummy); tny_account_set_pass_func (tny_account, get_pass_func ? get_pass_func: get_pass_dummy); - /* This name is what shows up in the folder view -- so for some POP/IMAP/... server - * account, we set its name to the account of which it is part. */ - - if (account_data->display_name) - tny_account_set_name (tny_account, account_data->display_name); - modest_tny_account_set_parent_modest_account_name_for_server_account (tny_account, account_name); modest_account_mgr_free_account_data (account_mgr, account_data); -- 1.7.9.5