aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r--mail/em-format-html-display.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 6221294998..e0a309d90f 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -1436,7 +1436,7 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje
if (!file) {
file = "attachment.dat";
- camel_mime_part_set_filename(new->body, file);
+ new->file_name = g_strdup(file);
}
tmp = g_hash_table_lookup (efhd->priv->files, file);
@@ -1454,9 +1454,8 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje
g_free (tmp_file);
g_hash_table_insert (efhd->priv->files, g_strdup(file), GUINT_TO_POINTER(count));
- camel_mime_part_set_filename(new->body, new_file);
-
- g_free(new_file);
+ g_free (new->file_name);
+ new->file_name = new_file;
} else {
g_hash_table_insert (efhd->priv->files, g_strdup(file), GUINT_TO_POINTER(1));
}