[vlc-commits] [Git][videolan/vlc][master] macosx: Fix off-by-one bug when double-clicking table view items in audio view

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Mar 27 14:18:55 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
da9b147a by Claudio Cambra at 2025-03-27T14:01:40+00:00
macosx: Fix off-by-one bug when double-clicking table view items in audio view

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/audio-library/VLCLibraryAudioDataSource.m


Changes:

=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioDataSource.m
=====================================
@@ -769,7 +769,7 @@ NSString * const VLCLibraryAudioDataSourceDisplayedCollectionChangedNotification
     NSParameterAssert(tableView != nil);
 
     const NSInteger clickedRow = tableView.clickedRow;
-    const id<VLCMediaLibraryItemProtocol> libraryItem = self.displayedCollection[clickedRow - 1];
+    const id<VLCMediaLibraryItemProtocol> libraryItem = self.displayedCollection[clickedRow];
     VLCLibraryRepresentedItem * const representedItem = [[VLCLibraryRepresentedItem alloc] initWithItem:libraryItem parentType:self.currentParentType];
 
     [representedItem play];



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/da9b147a867e7633349452f0bab82c3139f5b2e3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/da9b147a867e7633349452f0bab82c3139f5b2e3
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list