diff options
author | Milan Crha <mcrha@redhat.com> | 2010-04-27 00:06:08 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-04-27 00:06:08 +0800 |
commit | f1eae39e4eeb41347f5559896f2fd724ffa67c01 (patch) | |
tree | d7b4f2ee9e1705dd290452fe7080522583399209 /mail | |
parent | faddd5106749fb3493c4bbc73f96571c5f6ded40 (diff) | |
download | gsoc2013-evolution-f1eae39e4eeb41347f5559896f2fd724ffa67c01.tar gsoc2013-evolution-f1eae39e4eeb41347f5559896f2fd724ffa67c01.tar.gz gsoc2013-evolution-f1eae39e4eeb41347f5559896f2fd724ffa67c01.tar.bz2 gsoc2013-evolution-f1eae39e4eeb41347f5559896f2fd724ffa67c01.tar.lz gsoc2013-evolution-f1eae39e4eeb41347f5559896f2fd724ffa67c01.tar.xz gsoc2013-evolution-f1eae39e4eeb41347f5559896f2fd724ffa67c01.tar.zst gsoc2013-evolution-f1eae39e4eeb41347f5559896f2fd724ffa67c01.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')
-rw-r--r-- | mail/e-mail-reader-utils.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c index 51912bb1b1..fb823e543e 100644 --- a/mail/e-mail-reader-utils.c +++ b/mail/e-mail-reader-utils.c @@ -697,8 +697,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) |