changeset 3530:08dae20c75f0 trunk

Don't store default playlist in the playlists/ directory.
author Kieran Clancy <clancy.kieran+audacious@gmail.com>
date Sat, 15 Sep 2007 18:10:55 +0930
parents 7e8c4aadfc32
children 7532ab3d25e5
files src/audacious/main.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/main.c	Sat Sep 15 00:23:12 2007 +0300
+++ b/src/audacious/main.c	Sat Sep 15 18:10:55 2007 +0930
@@ -938,6 +938,7 @@
 
     /* Save extra playlists that were loaded from PLAYLISTS_DIR  */
     saved = NULL;
+    saved = g_list_prepend(saved, playlist); /* don't save default again */
     if(!dir_foreach(bmp_paths[BMP_PATH_PLAYLISTS_DIR], save_extra_playlist,
             &saved, NULL)) {
         g_warning("Could not save extra playlists\n");
@@ -1299,12 +1300,6 @@
 
     title = playlist_get_current_name(playlist);
 
-    if (playlist_playlists_equal(playlist, deflist)) {
-        /* same as default playlist */
-        playlist_remove_playlist(playlist);
-        playlist_filename_set(deflist, path);
-    }
-
     return FALSE; /* keep loading other playlists */
 }