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

CQTexperiment
vspader 2007-03-10 14:23:35 +00:00
parent 15f1aa2ebd
commit 466b2f909c
1 changed files with 1 additions and 3 deletions

View File

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