diff options
Diffstat (limited to 'libsylph/account.c')
| -rw-r--r-- | libsylph/account.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libsylph/account.c b/libsylph/account.c index 2431bf3..de0d6f0 100644 --- a/libsylph/account.c +++ b/libsylph/account.c | |||
| @@ -51,6 +51,10 @@ void account_read_config_all(void) | |||
| 51 | FILE *fp; | 51 | FILE *fp; |
| 52 | gchar buf[PREFSBUFSIZE]; | 52 | gchar buf[PREFSBUFSIZE]; |
| 53 | PrefsAccount *ac_prefs; | 53 | PrefsAccount *ac_prefs; |
| 54 | #if USE_SSL | ||
| 55 | gchar *master_password; | ||
| 56 | master_password = input_query_password("Sylpheed", "Master password"); | ||
| 57 | #endif | ||
| 54 | 58 | ||
| 55 | debug_print(_("Reading all config for each account...\n")); | 59 | debug_print(_("Reading all config for each account...\n")); |
| 56 | 60 | ||
| @@ -79,6 +83,9 @@ void account_read_config_all(void) | |||
| 79 | for (cur = ac_label_list; cur != NULL; cur = cur->next) { | 83 | for (cur = ac_label_list; cur != NULL; cur = cur->next) { |
| 80 | ac_prefs = prefs_account_new(); | 84 | ac_prefs = prefs_account_new(); |
| 81 | prefs_account_read_config(ac_prefs, (gchar *)cur->data); | 85 | prefs_account_read_config(ac_prefs, (gchar *)cur->data); |
| 86 | #if USE_SSL | ||
| 87 | ac_prefs->master_password = master_password; | ||
| 88 | #endif | ||
| 82 | account_list = g_list_append(account_list, ac_prefs); | 89 | account_list = g_list_append(account_list, ac_prefs); |
| 83 | if (ac_prefs->is_default) | 90 | if (ac_prefs->is_default) |
| 84 | cur_account = ac_prefs; | 91 | cur_account = ac_prefs; |
