[rhythmbox/media-player-sync] ipod: don't delete the podcasts playlist when syncing



commit 3af7c9f08f6f4777f16f5e881cc1111a900c3174
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Jan 31 23:07:55 2010 +1000

    ipod: don't delete the podcasts playlist when syncing

 plugins/ipod/rb-ipod-source.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/ipod/rb-ipod-source.c b/plugins/ipod/rb-ipod-source.c
index 69b4853..40716bd 100644
--- a/plugins/ipod/rb-ipod-source.c
+++ b/plugins/ipod/rb-ipod-source.c
@@ -1203,7 +1203,9 @@ impl_remove_playlists (RBMediaPlayerSource *source)
 	for (p = playlists; p != NULL; p = p->next) {
 		Itdb_Playlist *playlist = (Itdb_Playlist *)p->data;
 		/* XXX might need to exclude more playlists here.. */
-		if (!itdb_playlist_is_mpl (playlist) && !playlist->is_spl) {
+		if (!itdb_playlist_is_mpl (playlist) &&
+		    !itdb_playlist_is_podcasts (playlist) &&
+		    !playlist->is_spl) {
 
 			/* destroy the playlist source */
 			RBSource *rb_playlist = RB_SOURCE (playlist->userdata);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]