* Fixes NB#104896, do not show purged attachments in "Save attachment" dialog
authorSergio Villar Senin <svillar@igalia.com>
Mon, 9 Mar 2009 12:59:00 +0000 (12:59 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 9 Mar 2009 12:59:00 +0000 (12:59 +0000)
pmo-trunk-r7847

src/hildon2/modest-maemo-utils.c

index c2248af..6b37582 100644 (file)
@@ -402,8 +402,9 @@ modest_maemo_utils_select_attachments (GtkWindow *window, TnyList *att_list)
 
                part = (TnyMimePart *) tny_iterator_get_current (iterator);
 
 
                part = (TnyMimePart *) tny_iterator_get_current (iterator);
 
-               /* Embbeded messages are not offered to be saved */
-               if (!TNY_IS_MSG (part)) {
+               /* Embbeded messages are not offered to be
+                  saved. Purged attachments are ignored as well */
+               if (!TNY_IS_MSG (part) && !tny_mime_part_is_purged (part)) {
                        gchar *label;
                        gchar *filename = NULL;
 
                        gchar *label;
                        gchar *filename = NULL;