diff --git a/modules/gui/macosx/library/VLCLibraryWindowNavigationSidebarController.m b/modules/gui/macosx/library/VLCLibraryWindowNavigationSidebarController.m index 347ee0aaff..5c07599264 100644 --- a/modules/gui/macosx/library/VLCLibraryWindowNavigationSidebarController.m +++ b/modules/gui/macosx/library/VLCLibraryWindowNavigationSidebarController.m @@ -100,6 +100,15 @@ static NSString * const VLCLibrarySegmentCellIdentifier = @"VLCLibrarySegmentCel return cellView; } +- (NSIndexSet *)outlineView:(NSOutlineView *)outlineView selectionIndexesForProposedSelection:(nonnull NSIndexSet *)proposedSelectionIndexes +{ + if (proposedSelectionIndexes.count == 0 || proposedSelectionIndexes.firstIndex != VLCLibraryMusicSegment) { + return proposedSelectionIndexes; + } else { + return [NSIndexSet indexSetWithIndex:VLCLibraryArtistsMusicSubSegment]; + } +} + - (void)outlineViewSelectionDidChange:(NSNotification *)notification { NSTreeNode * const node = (NSTreeNode *)[_outlineView itemAtRow:_outlineView.selectedRow];