Fixed selectPlaylist: it works now :D
authorKent Sutherland <ksuther@ithinksw.com>
Sun, 9 Mar 2003 22:08:20 +0000 (22:08 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Sun, 9 Mar 2003 22:08:20 +0000 (22:08 +0000)
MenuTunes.m

index 7fa1d43..419a93a 100755 (executable)
@@ -713,7 +713,9 @@ Things to do:
     int playlist = [[sender representedObject] intValue];
     if (!isPlayingRadio) {
         int curPlaylist = [currentRemote currentPlaylistIndex];
-        [[playlistMenu itemAtIndex:curPlaylist - 1] setState:NSOffState];
+        if (curPlaylist > 0) {
+            [[playlistMenu itemAtIndex:curPlaylist - 1] setState:NSOffState];
+        }
     }
     [currentRemote switchToPlaylistAtIndex:playlist];
     [[playlistMenu itemAtIndex:playlist - 1] setState:NSOnState];