empathy r1751 - trunk/libempathy-gtk



Author: xclaesse
Date: Fri Nov 21 16:14:42 2008
New Revision: 1751
URL: http://svn.gnome.org/viewvc/empathy?rev=1751&view=rev

Log:
Added fix for an empty default folder. (Jonny Lamb)

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/libempathy-gtk/empathy-ft-manager.c

Modified: trunk/libempathy-gtk/empathy-ft-manager.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ft-manager.c	(original)
+++ trunk/libempathy-gtk/empathy-ft-manager.c	Fri Nov 21 16:14:42 2008
@@ -1090,7 +1090,8 @@
 		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));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]