aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ft-manager.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:14:42 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:14:42 +0800
commit6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85 (patch)
treecaeea96b1b94708bbaba8becfed2ec297015aff2 /libempathy-gtk/empathy-ft-manager.c
parentad1861f1744c0d6d4ac8068238f5be91ae1db905 (diff)
downloadgsoc2013-empathy-6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85.tar
gsoc2013-empathy-6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85.tar.gz
gsoc2013-empathy-6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85.tar.bz2
gsoc2013-empathy-6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85.tar.lz
gsoc2013-empathy-6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85.tar.xz
gsoc2013-empathy-6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85.tar.zst
gsoc2013-empathy-6ace7765dca23f5c44d320cf6cfa3bd17b3e3d85.zip
Added fix for an empty default folder. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1751
Diffstat (limited to 'libempathy-gtk/empathy-ft-manager.c')
-rw-r--r--libempathy-gtk/empathy-ft-manager.c3
1 files changed, 2 insertions, 1 deletions
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));