diff options
Diffstat (limited to 'e-util/e-attachment-store.c')
-rw-r--r-- | e-util/e-attachment-store.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/e-util/e-attachment-store.c b/e-util/e-attachment-store.c index 55bc795095..8ea2f8965b 100644 --- a/e-util/e-attachment-store.c +++ b/e-util/e-attachment-store.c @@ -727,18 +727,18 @@ e_attachment_store_get_uris_async (EAttachmentStore *store, for (iter = attachment_list; iter != NULL; iter = iter->next) { EAttachment *attachment = iter->data; GFile *file; - gchar *uri; file = e_attachment_get_file (attachment); - if (file == NULL) - continue; + if (file != NULL) { + gchar *uri; - uri = g_file_get_uri (file); - uri_context->uris[uri_context->index++] = uri; + uri = g_file_get_uri (file); + uri_context->uris[uri_context->index++] = uri; - /* Mark the list node for deletion. */ - trash = g_list_prepend (trash, iter); - g_object_unref (attachment); + /* Mark the list node for deletion. */ + trash = g_list_prepend (trash, iter); + g_object_unref (attachment); + } } /* Expunge the list. */ |