aboutsummaryrefslogtreecommitdiff
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
parent7081a212cf83b04fd613525424e7bfd483495816 (diff)
modified compose_get_attach_list().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3517 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--src/compose.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 97f93a06..fa29a943 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-13
+
+ * src/compose.c: compose_get_attach_list(): return NULL if the
+ attachment list is closed.
+
2016-07-07
* src/plugin.h: add two more functions.
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);