talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 28a6035db2300393f163ae28dada3efbed1c11d1
parent 15968106f5ffcf836c80c9564d015e1e576978be
Author: Paul <paul@claws-mail.org>
Date:   Thu,  8 Aug 2019 19:26:26 +0100

remove "The following file has been attached..." dialogue

don't show the needless "The following file has been attached..."
dialogue when attaching files by drag'n'drop

Diffstat:
Msrc/compose.c | 16++--------------
1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/src/compose.c b/src/compose.c @@ -10950,31 +10950,19 @@ static void paste_text(Compose *compose, GtkWidget *entry, static void attach_uri_list(Compose *compose, GtkSelectionData *data) { GList *list, *tmp; - int att = 0; - gchar *warn_files = NULL; list = uri_list_extract_filenames( (const gchar *)gtk_selection_data_get_data(data)); for (tmp = list; tmp != NULL; tmp = tmp->next) { gchar *utf8_filename = conv_filename_to_utf8((const gchar *)tmp->data); - gchar *tmp_f = g_strdup_printf("%s%s\n", - warn_files?warn_files:"", - utf8_filename); - g_free(warn_files); - warn_files = tmp_f; - att++; compose_attach_append (compose, (const gchar *)tmp->data, utf8_filename, NULL, NULL); g_free(utf8_filename); } - if (list) { + if (list) compose_changed_cb(NULL, compose); - alertpanel_notice(ngettext( - "The following file has been attached: \n%s", - "The following files have been attached: \n%s", att), warn_files); - g_free(warn_files); - } + list_free_strings_full(list); }