[vlc-commits] [Git][videolan/vlc][master] macosx: Fix crash on receiving playlist deletion notification from library model

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Aug 24 09:39:51 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8eca86c6 by Claudio Cambra at 2025-08-24T09:24:51+00:00
macosx: Fix crash on receiving playlist deletion notification from library model

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

- - - - -


1 changed file:

- modules/gui/macosx/library/playlist-library/VLCLibraryPlaylistViewController.m


Changes:

=====================================
modules/gui/macosx/library/playlist-library/VLCLibraryPlaylistViewController.m
=====================================
@@ -72,7 +72,7 @@
                                    name:VLCLibraryModelPlaylistAdded
                                  object:nil];
         [notificationCenter addObserver:self
-                               selector:@selector(libraryModelUpdated:)
+                               selector:@selector(libraryModelPlaylistDeleted:)
                                    name:VLCLibraryModelPlaylistDeleted
                                  object:nil];
 
@@ -309,6 +309,15 @@
     }
 }
 
+- (void)libraryModelPlaylistDeleted:(NSNotification *)notification
+{
+    NSParameterAssert(notification);
+    if (self.libraryWindow.librarySegmentType == VLCLibraryPlaylistsSegmentType &&
+        self.libraryWindow.videoViewController.view.hidden) {
+        [self updatePresentedView];
+    }
+}
+
 - (void)libraryModelLongLoadStarted:(NSNotification *)notification
 {
     if (self.connected) {



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

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