diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-02-21 00:01:01 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2006-02-21 00:01:01 +0800 |
commit | bc081447ebfff72bd9310306f40f286415f319c9 (patch) | |
tree | 2697dff521b5a182cf245f80ac4971fce81ee809 /mail/em-utils.c | |
parent | 3c48cf5fc086d2f2b5ad0f56f6f58f2b83280fb7 (diff) | |
download | gsoc2013-evolution-bc081447ebfff72bd9310306f40f286415f319c9.tar.gz gsoc2013-evolution-bc081447ebfff72bd9310306f40f286415f319c9.tar.zst gsoc2013-evolution-bc081447ebfff72bd9310306f40f286415f319c9.zip |
Fix for bug 322160.
svn path=/trunk/; revision=31548
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 194073ee19..cc0302fe59 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -433,7 +433,7 @@ emu_save_part_response(GtkWidget *filesel, int response, CamelMimePart *part) emu_update_save_path(path, FALSE); /* FIXME: popup error if it fails? */ - mail_save_part(part, path, NULL, NULL); + mail_save_part(part, path, NULL, NULL, FALSE); } gtk_widget_destroy((GtkWidget *)filesel); @@ -508,7 +508,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)) || e_error_run(NULL, E_ERROR_ASK_FILE_EXISTS_OVERWRITE, file_name, NULL) == GTK_RESPONSE_OK) - mail_save_part(part, file_path, NULL, NULL); + mail_save_part(part, file_path, NULL, NULL, FALSE); else g_warning ("Could not save %s. File already exists", file_path); @@ -576,7 +576,7 @@ em_utils_save_part_to_file(GtkWidget *parent, const char *filename, CamelMimePar } /* FIXME: This doesn't handle default charsets */ - mail_msg_wait(mail_save_part(part, filename, emu_save_part_done, &done)); + mail_msg_wait(mail_save_part(part, filename, emu_save_part_done, &done, FALSE)); return done; } @@ -1281,10 +1281,10 @@ em_utils_temp_save_part(GtkWidget *parent, CamelMimePart *part) path = g_build_filename(tmpdir, filename, NULL); g_free(tmpdir); g_free(mfilename); - + /* FIXME: This doesn't handle default charsets */ - mail_msg_wait(mail_save_part(part, path, emu_save_part_done, &done)); - + mail_msg_wait(mail_save_part(part, path, emu_save_part_done, &done, TRUE)); + if (!done) { /* mail_save_part should popup an error box automagically */ g_free(path); |