aboutsummaryrefslogtreecommitdiff
path: root/src/compose.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-26 06:24:24 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-26 06:24:24 +0000
commit81e59201385b28d3c6690f48f031d090acc0de31 (patch)
tree5e5115daf5e278c91c7e0e83fdf49026a49151f6 /src/compose.c
parente4eb7ddd1d987340e339b2a59d7ed0be46d79166 (diff)
only add modified flag when files are manually attached.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@862 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r--src/compose.c4
1 files changed, 2 insertions, 2 deletions
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);
}