git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
74d6135
)
Fixed selectPlaylist: it works now :D
author
Kent Sutherland
<ksuther@ithinksw.com>
Sun, 9 Mar 2003 22:08:20 +0000
(22:08 +0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Sun, 9 Mar 2003 22:08:20 +0000
(22:08 +0000)
MenuTunes.m
patch
|
blob
|
history
diff --git
a/MenuTunes.m
b/MenuTunes.m
index
7fa1d43
..
419a93a
100755
(executable)
--- 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];