changeset 3401:ae30eb582a66

Only set playlist name to filename if it didn't already have a name
author Kieran Clancy <clancy.kieran+audacious@gmail.com>
date Mon, 27 Aug 2007 01:45:47 +0930
parents 8764498b75ed
children dc5ac604569d
files src/audacious/playlist.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Sun Aug 26 23:00:02 2007 +0930
+++ b/src/audacious/playlist.c	Mon Aug 27 01:45:47 2007 +0930
@@ -1574,7 +1574,8 @@
 
     ext = strrchr(filename, '.') + 1;
 
-    playlist_set_current_name(playlist, filename);
+    if (!playlist->title || !playlist->title[0])
+        playlist_set_current_name(playlist, filename);
 
     if ((plc = playlist_container_find(ext)) == NULL)
         return FALSE;