[evolution] Bug #573320 - "Encrypt to self" by default on newly created mail accounts
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #573320 - "Encrypt to self" by default on newly created mail accounts
- Date: Tue, 24 Aug 2010 08:30:46 +0000 (UTC)
commit f1d2541c487fbf7433a1b9aad8e8982ef08b85f5
Author: Milan Crha <mcrha redhat com>
Date: Tue Aug 24 10:29:54 2010 +0200
Bug #573320 - "Encrypt to self" by default on newly created mail accounts
mail/em-account-editor.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index a6d624e..923e1b0 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -258,6 +258,10 @@ emae_set_original_account (EMAccountEditor *emae,
e_account_set_string (
modified_account, E_ACCOUNT_SENT_FOLDER_URI,
e_mail_local_get_folder_uri (E_MAIL_FOLDER_SENT));
+
+ /* encrypt to self by default */
+ e_account_set_bool (modified_account, E_ACCOUNT_PGP_ENCRYPT_TO_SELF, TRUE);
+ e_account_set_bool (modified_account, E_ACCOUNT_SMIME_ENCRYPT_TO_SELF, TRUE);
}
emae->priv->original_account = original_account;
@@ -1219,7 +1223,6 @@ smime_changed (EMAccountEditor *emae)
gtk_widget_set_sensitive ((GtkWidget *)priv->smime_encrypt_to_self, act);
if (!act) {
gtk_toggle_button_set_active (priv->smime_encrypt_default, FALSE);
- gtk_toggle_button_set_active (priv->smime_encrypt_to_self, FALSE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]