Patch from Paul Bolle <pebolle@tiscali.nl>: Fix related to bug #539268 (Do not append description if it is just an empty string).
svn path=/trunk/; revision=35898
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
2008-08-04 Paul Bolle <pebolle@tiscali.nl>
|
||||
|
||||
** Further fix for bug #539268
|
||||
|
||||
* em-format.c (em_format_describe_part): Do not append description
|
||||
if it is just an empty string.
|
||||
|
||||
2008-08-04 Matthew Barnes <mbarnes@redhat.com>
|
||||
|
||||
** Fixes bug #249844
|
||||
|
||||
@ -1159,6 +1159,7 @@ em_format_describe_part(CamelMimePart *part, const char *mime_type)
|
||||
if ((filename = camel_mime_part_get_filename (part)))
|
||||
g_string_append_printf(stext, " (%s)", filename);
|
||||
if ((description = camel_mime_part_get_description(part)) &&
|
||||
(*description != 0) &&
|
||||
!(filename && (strcmp(filename, description) == 0)))
|
||||
g_string_append_printf(stext, ", \"%s\"", description);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user