aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2016-07-13 08:47:18 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2016-07-13 08:47:18 +0000
commit27375ea78942fd6d515c86a4965420494c99cd4c (patch)
tree3a159f0bd3d02b074b0e1acae61b5dca886c40e0 /src
parent7081a212cf83b04fd613525424e7bfd483495816 (diff)
modified compose_get_attach_list().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3517 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/compose.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compose.c b/src/compose.c
index 4660428b..708a57e8 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -6516,6 +6516,9 @@ GSList *compose_get_attach_list(Compose *compose)
AttachInfo *ainfo;
GSList *alist = NULL;
+ if (!compose->use_attach)
+ return NULL;
+
for (valid = gtk_tree_model_get_iter_first(model, &iter); valid;
valid = gtk_tree_model_iter_next(model, &iter)) {
gtk_tree_model_get(model, &iter, COL_ATTACH_INFO, &ainfo, -1);