Commit 1b693963 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/VLC_app/VLCMainWindow.m: Don't attempt to play selected items if their count is null.

parent 8e88b0c1
...@@ -269,6 +269,8 @@ ...@@ -269,6 +269,8 @@
- (void)mediaListViewItemDoubleClicked:(id)sender - (void)mediaListViewItemDoubleClicked:(id)sender
{ {
if([[mediaArrayController selectedObjects] count] <= 0 )
return;
[mediaPlayer setMedia:[[mediaArrayController selectedObjects] objectAtIndex:0]]; [mediaPlayer setMedia:[[mediaArrayController selectedObjects] objectAtIndex:0]];
[mediaPlayer play]; [mediaPlayer play];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment