X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/67c27db4fde8f76cff3e419768d8d7a047f4eb50..8a38563fa0999446b3c396a23c45c15f73a86c87:/MenuController.m?ds=inline diff --git a/MenuController.m b/MenuController.m index 4ab0bf4..1c8dd90 100755 --- a/MenuController.m +++ b/MenuController.m @@ -497,7 +497,6 @@ if (_currentPlaylist && !_playingRadio) { if (numSongs > 0) { int i; - for (i = _currentTrack + 1; i <= _currentTrack + numSongsInAdvance; i++) { if (i <= numSongs) { NSString *curSong; @@ -575,6 +574,9 @@ int i, j; NS_DURING playlists = [[[MainController sharedController] currentRemote] playlists]; + /*playlists = [NSArray arrayWithObjects: + [NSArray arrayWithObjects:@"Library", [NSNumber numberWithInt:-1], @"Library", @"Playlist", nil], + [NSArray arrayWithObjects:@"Radio", [NSNumber numberWithInt:1], @"Radio", nil], nil];*/ NS_HANDLER [[MainController sharedController] networkError:localException]; NS_ENDHANDLER @@ -604,7 +606,7 @@ NSMenu *submenu = [[NSMenu alloc] init]; ITDebugLog(@"Adding source: %@", name); - if ( ([[curPlaylist objectAtIndex:i] intValue] == ITMTRemoteiPodSource) && (![self iPodAtPathAutomaticallyUpdates:[curPlaylist objectAtIndex:j]]) ) { + if ( ([[curPlaylist objectAtIndex:i] intValue] == ITMTRemoteiPodSource) && [self iPodAtPathAutomaticallyUpdates:[curPlaylist objectAtIndex:j]]) ) { ITDebugLog(@"Invalid iPod source."); } else { for (j = 2; j < [curPlaylist count]; j++) {