Clear stopAfter status when changing the song. Fixed bug where status wasn't dependant on stopAfter.

CQTexperiment
vspader 2008-03-01 03:35:27 +00:00
parent 3cdca94207
commit d7826ee144
2 changed files with 4 additions and 3 deletions

View File

@ -558,6 +558,7 @@
- (void)setCurrentEntry:(PlaylistEntry *)pe
{
currentEntry.current = NO;
currentEntry.stopAfter = NO;
pe.current = YES;
@ -697,7 +698,7 @@
if (action == @selector(emptyQueueList:) && ([queueList count] < 1))
return NO;
if (action == @selector(stopAfterCurrent:) && !currentEntry.stopAfter)
if (action == @selector(stopAfterCurrent:) && currentEntry.stopAfter)
return NO;
// if nothing is selected, gray out these

View File

@ -68,12 +68,12 @@
+ (NSSet *)keyPathsForValuesAffectingStatus
{
return [NSSet setWithObjects:@"current",@"queued", @"error", nil];
return [NSSet setWithObjects:@"current",@"queued", @"error", @"stopAfter", nil];
}
+ (NSSet *)keyPathsForValuesAffectingStatusMessage
{
return [NSSet setWithObjects:@"current", @"queued", @"queuePosition", @"error", @"errorMessage", nil];
return [NSSet setWithObjects:@"current", @"queued", @"queuePosition", @"error", @"errorMessage", @"stopAfter", nil];
}
- (void)setProperties:(NSDictionary *)properties