[vlc-commits] macosx: improve playlist context menu handling by selecting the right menu item at mouse location

David Fuhrmann git at videolan.org
Sat Jul 28 16:47:08 CEST 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Jul 20 16:15:35 2012 +0200| [ae66a7775cd4eb96217b4167b6275d624e5f1891] | committer: Felix Paul Kühne

macosx: improve playlist context menu handling by selecting the right menu item at mouse location
(cherry picked from commit 729fe67eaab131e283c386d478c816c768b2df28)

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

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

 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 bfbcb81..d7f0d1d 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1309,7 +1309,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 );



More information about the vlc-commits mailing list