[Commits] [SCM] claws branch, master, updated. 3.17.4-23-g41f150e4d

paul at claws-mail.org paul at claws-mail.org
Tue Sep 24 09:04:09 CET 2019


The branch, master has been updated
       via  41f150e4d758fb24520f992d0107b5e5f310e3b0 (commit)
      from  2b8ce9a53b7c4004d2a4eafc06ca5b9117c719e6 (commit)

Summary of changes:
 src/prefs_account.c | 25 +------------------------
 1 file changed, 1 insertion(+), 24 deletions(-)


- Log -----------------------------------------------------------------
commit 41f150e4d758fb24520f992d0107b5e5f310e3b0
Author: Paul <paul at claws-mail.org>
Date:   Tue Sep 24 10:04:04 2019 +0100

    when creating a new account, don't pre-fill data from the default account

diff --git a/src/prefs_account.c b/src/prefs_account.c
index 63bafb9ba..7f33edc00 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -461,7 +461,7 @@ static PrefParam basic_param[] = {
 	 &basic_page.nntpauth_onconnect_checkbtn,
 	 prefs_set_data_from_toggle, prefs_set_toggle},
 
-	{"user_id", "ENV_USER", &tmp_ac_prefs.userid, P_STRING,
+	{"user_id", NULL, &tmp_ac_prefs.userid, P_STRING,
 	 &basic_page.uid_entry, prefs_set_data_from_entry, prefs_set_entry},
 
 	{"password", NULL, &tmp_ac_prefs.passwd, P_PASSWORD,
@@ -1450,33 +1450,10 @@ static void basic_create_widget_func(PrefsPage * _page,
 	page->auto_configure_lbl = auto_configure_lbl;
 
 	if (new_account) {
-		PrefsAccount *def_ac;
-
 		prefs_set_dialog_to_default(basic_param);
 		buf = g_strdup_printf(_("Account%d"), ac_prefs->account_id);
 		gtk_entry_set_text(GTK_ENTRY(basic_page.acname_entry), buf);
 		g_free(buf);
-		def_ac = account_get_default();
-		if (def_ac) {
-			FolderItem *item = folder_get_default_inbox_for_class(F_MH);
-			gtk_entry_set_text(GTK_ENTRY(basic_page.name_entry),
-					   def_ac->name ? def_ac->name : "");
-			gtk_entry_set_text(GTK_ENTRY(basic_page.addr_entry),
-					   def_ac->address ? def_ac->address : "");
-			gtk_entry_set_text(GTK_ENTRY(basic_page.org_entry),
-					   def_ac->organization ? def_ac->organization : "");
-			if (!item) {
-				item = folder_get_default_inbox();
-			}
-			if (item) {
-				gchar *id = folder_item_get_identifier(item);
-				gtk_entry_set_text(GTK_ENTRY(receive_page.inbox_entry),
-					id);
-				gtk_entry_set_text(GTK_ENTRY(receive_page.local_inbox_entry),
-					id);
-				g_free(id);
-			}
-		}
 	} else {
 		prefs_set_dialog(basic_param);
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list