[vlc-commits] macosx/mainmenu: use the new playlist when quickly opening files through the File menu

Felix Paul Kühne git at videolan.org
Thu Jan 31 14:02:02 CET 2019


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Thu Jan 31 14:00:39 2019 +0100| [abceccdd108d0f43ddd8f3ffbe88e2c6c9a1c8b2] | committer: Felix Paul Kühne

macosx/mainmenu: use the new playlist when quickly opening files through the File menu

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=abceccdd108d0f43ddd8f3ffbe88e2c6c9a1c8b2
---

 modules/gui/macosx/VLCMainMenu.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCMainMenu.m b/modules/gui/macosx/VLCMainMenu.m
index 40ef951411..70e0ca79f1 100644
--- a/modules/gui/macosx/VLCMainMenu.m
+++ b/modules/gui/macosx/VLCMainMenu.m
@@ -37,6 +37,7 @@
 #import "VLCBookmarksWindowController.h"
 #import "VLCSimplePrefsController.h"
 #import "VLCPlaylist.h"
+#import "VLCPlaylistController.h"
 #import "VLCPlaylistInfo.h"
 #import "VLCVoutView.h"
 #import "VLCCoreDialogProvider.h"
@@ -1121,7 +1122,7 @@
 - (IBAction)intfOpenFile:(id)sender
 {
     [[[VLCMain sharedInstance] open] openFileWithAction:^(NSArray *files) {
-        [[[VLCMain sharedInstance] playlist] addPlaylistItems:files];
+        [[[VLCMain sharedInstance] playlistController] addPlaylistItems:files];
     }];
 }
 



More information about the vlc-commits mailing list