Commit 729fe67e authored by David Fuhrmann's avatar David Fuhrmann

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

parent 69432b5b
...@@ -1363,7 +1363,7 @@ ...@@ -1363,7 +1363,7 @@
pt = [o_outline_view convertPoint: [o_event locationInWindow] fromView: nil]; pt = [o_outline_view convertPoint: [o_event locationInWindow] fromView: nil];
int row = [o_outline_view rowAtPoint:pt]; 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]; [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
b_item_sel = ( row != -1 && [o_outline_view selectedRow] != -1 ); 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