From 6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 21 Nov 2008 16:14:42 +0000 Subject: Added fix for an empty default folder. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1751 --- libempathy-gtk/empathy-ft-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-ft-manager.c b/libempathy-gtk/empathy-ft-manager.c index 734f6fd8e..1dfdc8f51 100644 --- a/libempathy-gtk/empathy-ft-manager.c +++ b/libempathy-gtk/empathy-ft-manager.c @@ -1090,7 +1090,8 @@ ft_manager_create_save_dialog (ReceiveResponseData *response_data) folder = g_strdup (g_get_user_special_dir (G_USER_DIRECTORY_DOWNLOAD)); } - gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (widget), folder); + if (folder) + gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (widget), folder); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (widget), empathy_file_get_filename (response_data->file)); -- cgit v1.2.3