[vlc-commits] [Git][videolan/vlc][master] macosx: Fix bookmarks NSInternalInconsistencyException

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Aug 30 08:53:05 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
81940634 by Bob Moriasi at 2025-08-30T08:18:25+00:00
macosx: Fix bookmarks NSInternalInconsistencyException

- - - - -


1 changed file:

- modules/gui/macosx/panels/VLCBookmarksWindowController.m


Changes:

=====================================
modules/gui/macosx/panels/VLCBookmarksWindowController.m
=====================================
@@ -140,6 +140,10 @@
 - (IBAction)goToBookmark:(id)sender
 {
     const NSInteger selectedRow = [_dataTable selectedRow];
+    if (selectedRow < 0) {
+        return;
+    }
+
     VLCBookmark * const bookmark = [_tableViewDataSource bookmarkForRow:selectedRow];
     vlc_tick_t bookmarkTime = VLC_TICK_FROM_MS(bookmark.bookmarkTime);
 
@@ -150,6 +154,10 @@
 - (IBAction)remove:(id)sender
 {
     const NSInteger selectedRow = [_dataTable selectedRow];
+    if (selectedRow < 0) {
+        return;
+    }
+
     VLCBookmark * const bookmark = [_tableViewDataSource bookmarkForRow:selectedRow];
     [_tableViewDataSource removeBookmark:bookmark];
 }



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/81940634db23a43c971e58feb9d10ba49f2f5f7a
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