diff options
| author | Simeon Simeonov | 2018-03-02 08:28:52 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-03-02 08:28:52 +0100 |
| commit | dd8e01ae9524d8109ce66b9294c64f50159d9672 (patch) | |
| tree | 34bafd043411a895b45bb386d3caf29e96b41183 | |
| parent | 2fc50ff5c237478749577a3446c536b11d055af3 (diff) | |
Prompt for master password only is use_master_password is on
| -rw-r--r-- | libsylph/account.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libsylph/account.c b/libsylph/account.c index 775e2f4..95d19fc 100644 --- a/libsylph/account.c +++ b/libsylph/account.c | |||
| @@ -36,6 +36,7 @@ | |||
| 36 | #include "procheader.h" | 36 | #include "procheader.h" |
| 37 | #include "utils.h" | 37 | #include "utils.h" |
| 38 | #include "sylmain.h" | 38 | #include "sylmain.h" |
| 39 | #include "prefs_common.h" | ||
| 39 | 40 | ||
| 40 | PrefsAccount *cur_account; | 41 | PrefsAccount *cur_account; |
| 41 | 42 | ||
| @@ -53,7 +54,11 @@ void account_read_config_all(void) | |||
| 53 | PrefsAccount *ac_prefs; | 54 | PrefsAccount *ac_prefs; |
| 54 | #if USE_SSL | 55 | #if USE_SSL |
| 55 | gchar *master_password; | 56 | gchar *master_password; |
| 56 | master_password = input_query_password("Sylpheed", "Master password"); | 57 | if (prefs_common.use_master_password) { |
| 58 | master_password = input_query_password("Sylpheed", "Master password"); | ||
| 59 | } else { | ||
| 60 | master_password = NULL; | ||
| 61 | } | ||
| 57 | #endif | 62 | #endif |
| 58 | 63 | ||
| 59 | debug_print(_("Reading all config for each account...\n")); | 64 | debug_print(_("Reading all config for each account...\n")); |
