Commit e2769a9b authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: don't manipulate the existing selection when right-clicking on the...

macosx: don't manipulate the existing selection when right-clicking on the playlist table (close #6892)
(cherry picked from commit 50962d72)
parent 8b456a36
......@@ -1270,8 +1270,7 @@
id o_item = [o_outline_view itemAtRow: [o_outline_view selectedRow]];
playlist_item_t *p_item = (playlist_item_t *)[o_item pointerValue];
if( ![[o_outline_view dataSource] outlineView: o_outline_view
isItemExpandable: o_item] )
if( ![[o_outline_view dataSource] outlineView: o_outline_view isItemExpandable: o_item] )
{
o_item = [o_outline_dict objectForKey: [NSString stringWithFormat: @"%p", p_item->p_parent]];
}
......@@ -1288,10 +1287,9 @@
bool b_rows;
bool b_item_sel;
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];
if( row != -1 )
if( row != -1 && [o_outline_view selectedRow] == -1)
[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