[vlc-devel] [PATCH 2/3] macosx: select the right playlist item when a new file in playlist begins to play

David Fuhrmann david.fuhrmann at googlemail.com
Fri Jan 20 12:58:26 CET 2012


should fix #4812 for vlc 2
---
 modules/gui/macosx/playlist.m |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index ea7a97b..9d32e71 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -597,6 +597,10 @@
             [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
-- 
1.7.5.4




More information about the vlc-devel mailing list