aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-12 00:43:21 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-12 00:43:21 +0800
commit8a38f582313a8acbb9badc28192fdd65a3167597 (patch)
tree24a0cb59047d1603b5a5a63e156c8361cd7d79e6 /mail/mail-display.c
parent03fcee050123742b2f98f1ba44f4bb2e19c450bc (diff)
downloadgsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.tar.gz
gsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.tar.zst
gsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.zip
Change to the user's home dir before opening the filesel.
2001-04-11 Jeffrey Stedfast <fejj@ximian.com> * mail-display.c (save_cb): Change to the user's home dir before opening the filesel. * mail-callbacks.c (save_msg): Same. svn path=/trunk/; revision=9241
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 734182d176..5310e0a64f 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -188,7 +188,8 @@ save_cb (GtkWidget *widget, gpointer user_data)
CamelMimePart *part = gtk_object_get_data (user_data, "CamelMimePart");
GtkFileSelection *file_select;
char *filename;
-
+
+ chdir (g_get_home_dir ());
filename = make_safe_filename (g_get_home_dir (), part);
file_select = GTK_FILE_SELECTION (
gtk_file_selection_new (_("Save Attachment")));