changeset 16609:0bad106a6c24

disapproval of revision '46c593524f745e1ed42ad75ba71d614c660ef52f'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 29 Apr 2007 15:14:29 +0000
parents 3c4b00865a30
children d2809bacb4a0
files pidgin/gtkrequest.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkrequest.c	Sun Apr 29 14:42:26 2007 +0000
+++ b/pidgin/gtkrequest.c	Sun Apr 29 15:14:29 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);
 	}