aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer-attachment.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index a8c5e331e5..b9f8904f78 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-15 Jeffrey Stedfast <fejj@ximian.com>
+
+ * e-msg-composer-attachment.c (e_msg_composer_attachment_new):
+ Just use g_basename.
+
2002-04-26 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): Check for empty-string pgp-key
diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c
index ddb73f2f52..7036461bbf 100644
--- a/composer/e-msg-composer-attachment.c
+++ b/composer/e-msg-composer-attachment.c
@@ -201,11 +201,7 @@ e_msg_composer_attachment_new (const char *file_name,
camel_object_unref (CAMEL_OBJECT (wrapper));
camel_mime_part_set_disposition (part, disposition);
- if (strchr (file_name, '/'))
- filename = e_utf8_from_locale_string (strrchr (file_name, '/') + 1);
- else
- filename = e_utf8_from_locale_string (file_name);
-
+ filename = e_utf8_from_locale_string (g_basename (file_name));
camel_mime_part_set_filename (part, filename);
g_free (filename);