changeset 16607:e2de7e4c10e7

Temporary fix for GNOME bug#353127.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 29 Apr 2007 14:39:49 +0000
parents 2ddffaf3613a
children 3c4b00865a30
files pidgin/gtkrequest.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkrequest.c	Sat Apr 28 23:33:10 2007 +0000
+++ b/pidgin/gtkrequest.c	Sun Apr 29 14:39:49 2007 +0000
@@ -1542,7 +1542,8 @@
 		else
 			gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(filesel), filename);
 	}
-	if ((current_folder != NULL) && (*current_folder != '\0')) {
+	if ((filename == NULL || *filename == '\0' || !g_file_test(filename, G_FILE_TEST_EXISTS)) &&
+				(current_folder != NULL) && (*current_folder != '\0')) {
 		folder_set = gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(filesel), current_folder);
 	}