Commit ae66a777 authored by David Fuhrmann's avatar David Fuhrmann Committed by 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: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent bb7a83f8
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment