From 81e59201385b28d3c6690f48f031d090acc0de31 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 26 Dec 2005 06:24:24 +0000 Subject: only add modified flag when files are manually attached. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@862 ee746299-78ed-0310-b773-934348b2243d --- src/compose.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compose.c') diff --git a/src/compose.c b/src/compose.c index 6df784aa..7b463bb3 100644 --- a/src/compose.c +++ b/src/compose.c @@ -1905,8 +1905,6 @@ static void compose_attach_append(Compose *compose, const gchar *file, } fclose(fp); - compose_changed_cb(NULL, compose); - if (!compose->use_attach) { GtkItemFactory *ifactory; @@ -5948,6 +5946,7 @@ static void compose_attach_cb(gpointer data, guint action, GtkWidget *widget) utf8_filename = conv_filename_to_utf8(file); compose_attach_append(compose, file, utf8_filename, NULL); + compose_changed_cb(NULL, compose); g_free(utf8_filename); g_free(file); } @@ -6558,6 +6557,7 @@ static void compose_attach_drag_received_cb (GtkWidget *widget, path = (gchar *)cur->data; filename = conv_filename_to_utf8(path); compose_attach_append(compose, path, filename, content_type); + compose_changed_cb(NULL, compose); g_free(filename); g_free(path); } -- cgit v1.2.3