Mercurial > audlegacy
diff src/audacious/playlist.c @ 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 | e2e875f3d02b |
children | 0fcff78c0c2c 3b26640f9fd6 602ec8c40d0d |
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;