diff options
author | Shreyas Srinivasan <sshreyas@novell.com> | 2005-07-29 14:16:15 +0800 |
---|---|---|
committer | Shreyas Srinivasan <shres@src.gnome.org> | 2005-07-29 14:16:15 +0800 |
commit | 0679612173857a8339065dff0c2d02cdea57c12d (patch) | |
tree | a244c2454a957dc27671c0496bff4968797cc4fe /mail | |
parent | 46e7ac7b716ae60de5988de2c455b0fb37c51339 (diff) | |
download | gsoc2013-evolution-0679612173857a8339065dff0c2d02cdea57c12d.tar gsoc2013-evolution-0679612173857a8339065dff0c2d02cdea57c12d.tar.gz gsoc2013-evolution-0679612173857a8339065dff0c2d02cdea57c12d.tar.bz2 gsoc2013-evolution-0679612173857a8339065dff0c2d02cdea57c12d.tar.lz gsoc2013-evolution-0679612173857a8339065dff0c2d02cdea57c12d.tar.xz gsoc2013-evolution-0679612173857a8339065dff0c2d02cdea57c12d.tar.zst gsoc2013-evolution-0679612173857a8339065dff0c2d02cdea57c12d.zip |
Fix #307358. Check if the provider type exists before senisitizing
2005-07-29 Shreyas Srinivasan <sshreyas@novell.com>
* em-account-editor.c (emae_defaults_page): Fix #307358. Check if
the provider type exists before senisitizing widgets.
svn path=/trunk/; revision=29929
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-account-editor.c | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 507cb441ab..a690a168b5 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,9 +1,14 @@ +2005-07-29 Shreyas Srinivasan <sshreyas@novell.com> + + * em-account-editor.c (emae_defaults_page): Fix #307358. Check if + the provider type exists before senisitizing widgets. + 2005-07-28 Not Zed <NotZed@Ximian.com> ** See bug #311440. * em-utils.c (em_utils_in_addressbook): handle NULL address. - + 2005-07-28 Praveen Kumar <kpraveen@novell.com> * em-account-editor.c (emae_check_complete) : Update the "Full Name" diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index de0348ff5b..686f8cebcb 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2141,11 +2141,14 @@ emae_defaults_page(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, st emae_account_entry(emae, "bcc_addrs", E_ACCOUNT_BCC_ADDRS, xml); gtk_widget_set_sensitive((GtkWidget *)gui->drafts_folder_button, e_account_writable(emae->account, E_ACCOUNT_DRAFTS_FOLDER_URI)); - gtk_widget_set_sensitive((GtkWidget *)gui->sent_folder_button, e_account_writable(emae->account, E_ACCOUNT_SENT_FOLDER_URI)&& !(emae->priv->source.provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER)); + + gtk_widget_set_sensitive((GtkWidget *)gui->sent_folder_button, e_account_writable(emae->account, E_ACCOUNT_SENT_FOLDER_URI) + && ( emae->priv->source.provider && !(emae->priv->source.provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER))); + gtk_widget_set_sensitive((GtkWidget *)gui->restore_folders_button, (e_account_writable(emae->account, E_ACCOUNT_SENT_FOLDER_URI) && - ! ( emae->priv->source.provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER)) - || e_account_writable(emae->account, E_ACCOUNT_DRAFTS_FOLDER_URI)); + ( emae->priv->source.provider && ! ( emae->priv->source.provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER)) || + e_account_writable(emae->account, E_ACCOUNT_DRAFTS_FOLDER_URI))); /* Receipt policy */ emae_setup_receipt_policy (emae, xml); |