From 23124f7792b7c7c9519ed9e6c0cfb517ca2bfddc Mon Sep 17 00:00:00 2001 From: vspader Date: Sun, 4 May 2008 22:29:02 +0000 Subject: [PATCH] Fixed bug when play on add is enabled and the playlist is empty. --- Playlist/PlaylistLoader.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Playlist/PlaylistLoader.m b/Playlist/PlaylistLoader.m index a04fe72f9..10eb9f0fc 100755 --- a/Playlist/PlaylistLoader.m +++ b/Playlist/PlaylistLoader.m @@ -308,7 +308,7 @@ //Auto start playback - if ([[NSUserDefaults standardUserDefaults] boolForKey:@"playOnAdd"]) { + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"playOnAdd"] && [entries count] > 0) { [playbackController playEntry: [entries objectAtIndex:0]]; } }