changeset 3173:734a25cd1efb trunk

Only set the filename in the dialog if it has been defined before by a previous load or save opeation.
author Christian Birchinger <joker@netswarm.net>
date Thu, 26 Jul 2007 22:33:25 +0200
parents b1964057a1a0
children 21c6e57af470
files src/audacious/ui_playlist.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_playlist.c	Thu Jul 26 12:10:34 2007 +0300
+++ b/src/audacious/ui_playlist.c	Thu Jul 26 22:33:25 2007 +0200
@@ -909,7 +909,8 @@
 
     dialog = make_filebrowser(title, FALSE);
     gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog), cfg.playlist_path);
-    gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), default_filename);
+    if (default_filename)
+        gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(dialog), default_filename);
     gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); /* centering */
 
     if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)