aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-utils.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 64bbf78c78..e49420f66a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2006-01-30 pavithran <pavithran@gmx.de>
+
+ ** Fixes bug #316223
+
+ * em-utils.c: (emu_save_parts_response): Added a confirmation dialog
+ for overwriting existing file during save all.
+
2006-01-27 Rajeev ramanathan <rajeevramanathan_2004@yahoo.co.in>
** Fixes #327000
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 059057d5a1..ccc93ea224 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -545,7 +545,7 @@ emu_save_parts_response (GtkWidget *filesel, int response, GSList *parts)
}
file_path = g_build_filename (path, file_name, NULL);
- if (!g_file_test(file_path, (G_FILE_TEST_EXISTS)))
+ if (!g_file_test(file_path, (G_FILE_TEST_EXISTS)) || e_error_run(NULL, E_ERROR_ASK_FILE_EXISTS_OVERWRITE, file_name, NULL) == GTK_RESPONSE_OK)
mail_save_part(part, file_path, NULL, NULL);
else
g_warning ("Could not save %s. File already exists", file_path);