]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/playlist.m
Fix a bug in playlist + delete updateVolumeSlider (closes #93)
[vlc] / modules / gui / macosx / playlist.m
index 4040505183d15edce7b656e2301861f160e30910..28b5b395d1d6a48b7dbbcc7b4c5ef05328c8ddbf 100644 (file)
@@ -303,9 +303,11 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
 
     for (j = 0 ; j < [o_array count] - 1 ; j++)
     {
-        [o_outline_view expandItem: [o_outline_dict objectForKey:
+        id o_item;
+        if( ( o_item = [o_outline_dict objectForKey:
                             [NSString stringWithFormat: @"%p",
-                            [[o_array objectAtIndex:j] pointerValue]]]];
+                            [[o_array objectAtIndex:j] pointerValue]]] ) != nil )
+            [o_outline_view expandItem: o_item];
 
     }