@@ 1204,6 1204,14 @@ typedef enum : NSUInteger {
playlist = [(Album*)parent songs];
} else if ([parent isKindOfClass:[Playlist class]]) {
playlist = [(Playlist*)parent songs];
+ } else if (!parent) {
+ NSMutableArray<Song*> *rootSongs = [NSMutableArray array];
+ for (id rootItem in self.outlineViewItems) {
+ if ([rootItem isKindOfClass:[Song class]]) {
+ [rootSongs addObject:rootItem];
+ }
+ }
+ playlist = rootSongs;
}
if (self.isRandomMode) {
playlist = [self shuffledPlaylist:playlist withFirstSong:song];