Fixed mousedown bug in the playlist view. It should only play if something is selected.

This commit is contained in:
vspader 2007-03-10 14:23:35 +00:00
parent 15f1aa2ebd
commit 466b2f909c

View file

@ -79,14 +79,12 @@
- (void)mouseDown:(NSEvent *)e - (void)mouseDown:(NSEvent *)e
{ {
NSLog(@"MOUSE DOWN"); if ([e type] == NSLeftMouseDown && [e clickCount] == 2 && [self selectedRow] != -1)
if ([e type] == NSLeftMouseDown && [e clickCount] == 2)
{ {
[playbackController play:self]; [playbackController play:self];
} }
else else
{ {
NSLog(@"Super");
[super mouseDown:e]; [super mouseDown:e];
} }
} }