From 9cddfeba7353187cc9fc6557133d8ab31ffc5dc5 Mon Sep 17 00:00:00 2001 From: Christopher Howard Date: Mon, 27 Jul 2009 17:08:50 -0800 Subject: [PATCH] =?UTF-8?q?Bug=20589674=20=E2=80=93=20"Send=20by=20Email"?= =?UTF-8?q?=20does=20not=20update=20"Filename"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove a conditional so that, in interactive mode, the Send by E-mail feature always uses the name of the file as the default file field value, instead of using the previously entered value of the field. --- plug-ins/common/mail.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/plug-ins/common/mail.c b/plug-ins/common/mail.c index bfcf403346..717245c7dc 100644 --- a/plug-ins/common/mail.c +++ b/plug-ins/common/mail.c @@ -232,19 +232,18 @@ run (const gchar *name, { case GIMP_RUN_INTERACTIVE: gimp_get_data (PLUG_IN_PROC, &mail_info); - if (! strlen (mail_info.filename)) - { - gchar *filename = gimp_image_get_filename (image_ID); + { + gchar *filename = gimp_image_get_filename (image_ID); - if (filename) - { - gchar *basename = g_path_get_basename (filename); + if (filename) + { + gchar *basename = g_path_get_basename (filename); - g_strlcpy (mail_info.filename, basename, BUFFER_SIZE); - g_free (basename); - g_free (filename); - } - } + g_strlcpy (mail_info.filename, basename, BUFFER_SIZE); + g_free (basename); + g_free (filename); + } + } if (! save_dialog ()) status = GIMP_PDB_CANCEL;