vlc | branch: master | David Fuhrmann <[email protected]> | Fri Jul 
20 16:15:35 2012 +0200| [729fe67eaab131e283c386d478c816c768b2df28] | committer: 
David Fuhrmann

macosx: improve playlist context menu handling by selecting the right menu item 
at mouse location

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=729fe67eaab131e283c386d478c816c768b2df28
---

 modules/gui/macosx/playlist.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 6039ea5..baddf8c 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1363,7 +1363,7 @@
 
     pt = [o_outline_view convertPoint: [o_event locationInWindow] fromView: 
nil];
     int row = [o_outline_view rowAtPoint:pt];
-    if( row != -1 && [o_outline_view selectedRow] == -1)
+    if( row != -1 && ![[o_outline_view selectedRowIndexes] containsIndex: row] 
)
         [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:row] 
byExtendingSelection:NO];
 
     b_item_sel = ( row != -1 && [o_outline_view selectedRow] != -1 );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to