aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-07-25 05:57:59 +0800
committerJacob Leach <jleach@src.gnome.org>2001-07-25 05:57:59 +0800
commitfd7b6edb31d810696b58b95c4ed82a9eefd38ab4 (patch)
treeb74148801cc5ae0971211e68c10abe957c2cb7bf /mail/mail-config.c
parent2045079893e2ed3a2975457d13014a41f57b7f25 (diff)
downloadgsoc2013-evolution-fd7b6edb31d810696b58b95c4ed82a9eefd38ab4.tar.gz
gsoc2013-evolution-fd7b6edb31d810696b58b95c4ed82a9eefd38ab4.tar.zst
gsoc2013-evolution-fd7b6edb31d810696b58b95c4ed82a9eefd38ab4.zip
Match the prefix for the "remember_passphrase" setting with where it's
2001-07-24 Jason Leach <jleach@ximian.com> * mail-config.c (config_read): Match the prefix for the "remember_passphrase" setting with where it's being saved to (/Mail/Prompts), so the setting gets loaded correctly. Fixes #5351. svn path=/trunk/; revision=11360
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 080b8e46e0..f7280b4883 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -521,7 +521,7 @@ config_read (void)
"/Mail/PGP/type", CAMEL_PGP_TYPE_NONE, NULL);
config->remember_pgp_passphrase = bonobo_config_get_boolean_with_default (
- config->db, "/Mail/PGP/remember_passphrase", TRUE, NULL);
+ config->db, "/Mail/Prompts/remember_passphrase", TRUE, NULL);
/* HTTP images */
config->http_mode = bonobo_config_get_long_with_default (config->db,
@@ -1267,20 +1267,20 @@ const MailConfigAccount *
mail_config_get_default_account (void)
{
MailConfigAccount *retval;
-
+
if (!config->accounts)
return NULL;
-
+
retval = g_slist_nth_data (config->accounts,
config->default_account);
-
+
/* Looks like we have no default, so make the first account
the default */
if (retval == NULL) {
mail_config_set_default_account_num (0);
retval = config->accounts->data;
}
-
+
return retval;
}
@@ -1368,11 +1368,11 @@ void
mail_config_set_default_account (const MailConfigAccount *account)
{
int position;
-
+
position = g_slist_index (config->accounts, (void*)account);
-
+
config->default_account = position;
-
+
return;
}