]> git.sesse.net Git - vlc/commitdiff
macosx: select the right playlist item when a new file in playlist begins to play
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Fri, 20 Jan 2012 11:58:26 +0000 (12:58 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 21 Jan 2012 05:44:08 +0000 (21:44 -0800)
should fix #4812 for vlc 2

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
modules/gui/macosx/playlist.m

index ea7a97ba0695fe61eefb23d6c90c6b12773c181b..d322ae026d06d49102d59ea0071666b7695a01ac 100644 (file)
             [o_outline_view expandItem: o_item];
         }
     }
+
+    id o_item = [o_outline_dict objectForKey:[NSString stringWithFormat: @"%p", p_item]];
+    NSInteger i_index = [o_outline_view rowForItem:o_item];
+    [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:i_index] byExtendingSelection:NO];
 }
 
 /* Check if p_item is a child of p_node recursively. We need to check the item