aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader-utils.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-04-27 00:07:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-30 00:40:25 +0800
commit260715a957453ad0d8d31c7da385c93aa293f82c (patch)
tree08835652b3b92864c38c174d353b5c0387d5475b /mail/e-mail-reader-utils.c
parentd9ed3824243be6def9dd3e899649406ab659291e (diff)
downloadgsoc2013-evolution-260715a957453ad0d8d31c7da385c93aa293f82c.tar
gsoc2013-evolution-260715a957453ad0d8d31c7da385c93aa293f82c.tar.gz
gsoc2013-evolution-260715a957453ad0d8d31c7da385c93aa293f82c.tar.bz2
gsoc2013-evolution-260715a957453ad0d8d31c7da385c93aa293f82c.tar.lz
gsoc2013-evolution-260715a957453ad0d8d31c7da385c93aa293f82c.tar.xz
gsoc2013-evolution-260715a957453ad0d8d31c7da385c93aa293f82c.tar.zst
gsoc2013-evolution-260715a957453ad0d8d31c7da385c93aa293f82c.zip
Use default headers when none stored to display in mailer
As part of bug #603418, to fix a corner case
Diffstat (limited to 'mail/e-mail-reader-utils.c')
-rw-r--r--mail/e-mail-reader-utils.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index ab72b364c7..addc126285 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -699,8 +699,11 @@ headers_changed_cb (GConfClient *gconf, guint cnxn_id, GConfEntry *entry, EMailR
e_mail_reader_header_free (h);
}
- g_slist_foreach(header_config_list, (GFunc) g_free, NULL);
- g_slist_free(header_config_list);
+ if (!header_config_list)
+ em_format_default_headers (emf);
+
+ g_slist_foreach (header_config_list, (GFunc) g_free, NULL);
+ g_slist_free (header_config_list);
/* force a redraw */
if (emf->message)