From: Kent Sutherland Date: Sun, 9 Mar 2003 22:08:20 +0000 (+0000) Subject: Fixed selectPlaylist: it works now :D X-Git-Tag: v1.0~207 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/f0a13d12fbc73e2eaf0a0045b6fac0475015e263 Fixed selectPlaylist: it works now :D --- diff --git a/MenuTunes.m b/MenuTunes.m index 7fa1d43..419a93a 100755 --- a/MenuTunes.m +++ b/MenuTunes.m @@ -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];