aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpavithran <pavithran@gmx.de>2006-01-30 12:18:58 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-01-30 12:18:58 +0800
commit3f965e3474b03766f60975d551c880893ae62c02 (patch)
tree3e1a21e4be575171eb1bb0b2d19559ac617d89d2
parente13b183857f768a04c5ff4aa37d62e1c8481a211 (diff)
downloadgsoc2013-evolution-3f965e3474b03766f60975d551c880893ae62c02.tar
gsoc2013-evolution-3f965e3474b03766f60975d551c880893ae62c02.tar.gz
gsoc2013-evolution-3f965e3474b03766f60975d551c880893ae62c02.tar.bz2
gsoc2013-evolution-3f965e3474b03766f60975d551c880893ae62c02.tar.lz
gsoc2013-evolution-3f965e3474b03766f60975d551c880893ae62c02.tar.xz
gsoc2013-evolution-3f965e3474b03766f60975d551c880893ae62c02.tar.zst
gsoc2013-evolution-3f965e3474b03766f60975d551c880893ae62c02.zip
** Fixes bug #316223
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. svn path=/trunk/; revision=31341
-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);