MacOSX/VLC_app/VLCMainWindow.m: Don't attempt to play selected items if their count...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 7 Jan 2008 21:02:35 +0000 (21:02 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 7 Jan 2008 21:02:35 +0000 (21:02 +0000)
extras/MacOSX/VLC_app/Sources/VLCMainWindow.m

index 22b405a..1b5c62c 100644 (file)
 
 - (void)mediaListViewItemDoubleClicked:(id)sender
 {
+    if([[mediaArrayController selectedObjects] count] <= 0 )
+        return;
     [mediaPlayer setMedia:[[mediaArrayController selectedObjects] objectAtIndex:0]];
     [mediaPlayer play];
 }