[vlc-commits] macosx: modernize xib file use for the main menu

Felix Paul Kühne git at videolan.org
Sun Jun 10 18:31:32 CEST 2018


vlc | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Jun 10 17:15:40 2018 +0200| [a50dad91b667c74ba96ed17fbcd53d7c73baf30c] | committer: Felix Paul Kühne

macosx: modernize xib file use for the main menu

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

 modules/gui/macosx/VLCMain.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCMain.m b/modules/gui/macosx/VLCMain.m
index 80eb6acf27..ec9c7385fe 100644
--- a/modules/gui/macosx/VLCMain.m
+++ b/modules/gui/macosx/VLCMain.m
@@ -96,7 +96,7 @@ int OpenIntf (vlc_object_t *p_this)
             [VLCApplication sharedApplication];
             [VLCMain sharedInstance];
 
-            [NSBundle loadNibNamed:@"MainMenu" owner:[[VLCMain sharedInstance] mainMenu]];
+            [[NSBundle mainBundle] loadNibNamed:@"MainMenu" owner:[[VLCMain sharedInstance] mainMenu] topLevelObjects:nil];
             [[[VLCMain sharedInstance] mainWindow] makeKeyAndOrderFront:nil];
 
             msg_Dbg(p_intf, "Finished loading macosx interface");



More information about the vlc-commits mailing list