X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-attachments-view.c;h=e0b6501b4c509009935033a3c6717fea2f57444f;hb=a8712a6b492bdc754ef169452802773ec89376cd;hp=6d24531d3a0c156eb0db9769f377fc38e044f3e6;hpb=b4125a1cd07aadf6fae0764a394388a1bad721b9;p=modest diff --git a/src/widgets/modest-attachments-view.c b/src/widgets/modest-attachments-view.c index 6d24531..e0b6501 100644 --- a/src/widgets/modest-attachments-view.c +++ b/src/widgets/modest-attachments-view.c @@ -186,7 +186,9 @@ modest_attachments_view_remove_attachment (ModestAttachmentsView *atts_view, Tny } if (found_att_view) { + priv->selected = g_list_remove (priv->selected, found_att_view); gtk_widget_destroy (GTK_WIDGET (found_att_view)); + own_clipboard (atts_view); } } @@ -209,12 +211,16 @@ modest_attachments_view_remove_attachment_by_id (ModestAttachmentsView *atts_vie const gchar *mime_part_id = NULL; mime_part_id = tny_mime_part_get_content_id (cur_mime_part); - if ((mime_part_id != NULL) && (strcmp (mime_part_id, att_id) == 0)) + if ((mime_part_id != NULL) && (strcmp (mime_part_id, att_id) == 0)) { gtk_widget_destroy (GTK_WIDGET (att_view)); + priv->selected = g_list_remove (priv->selected, att_view); + } g_object_unref (cur_mime_part); } + own_clipboard (atts_view); + } static void