From f0a13d12fbc73e2eaf0a0045b6fac0475015e263 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Sun, 9 Mar 2003 22:08:20 +0000 Subject: [PATCH] Fixed selectPlaylist: it works now :D --- MenuTunes.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; -- 2.20.1