diff options
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index ea795fc6d2..a681fdd5cf 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -94,7 +94,7 @@ write_data_to_file (CamelMimePart *part, const char *name, gboolean unique) if (fd == -1 && errno == EEXIST && !unique) { GtkWidget *dlg; GtkWidget *text; - + dlg = gnome_dialog_new (_("Overwrite file?"), GNOME_STOCK_BUTTON_YES, GNOME_STOCK_BUTTON_NO, @@ -103,15 +103,16 @@ write_data_to_file (CamelMimePart *part, const char *name, gboolean unique) gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dlg)->vbox), text, TRUE, TRUE, 4); gtk_window_set_policy(GTK_WINDOW(dlg), FALSE, TRUE, FALSE); gtk_widget_show (text); - + if (gnome_dialog_run_and_close (GNOME_DIALOG (dlg)) != 0) return FALSE; } + if (fd != -1) - close(fd); - + close (fd); + /* should this have progress of what its doing? */ - mail_msg_wait(mail_save_part(part, name, write_data_written, &ret)); + mail_msg_wait (mail_save_part (part, name, write_data_written, &ret)); return ret; } |