Commit 34e54fee authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix main menu initialization order on startup

MainMenus p_intf can be already accessed before
applicationWillFinishLaunching was called.

This should fix quite some crashes reported by the users.
parent fb0add8f
...@@ -139,12 +139,12 @@ static VLCMainMenu *_o_sharedInstance = nil; ...@@ -139,12 +139,12 @@ static VLCMainMenu *_o_sharedInstance = nil;
} }
[self setRateControlsEnabled:NO]; [self setRateControlsEnabled:NO];
p_intf = VLCIntf;
} }
- (void)applicationWillFinishLaunching:(NSNotification *)o_notification - (void)applicationWillFinishLaunching:(NSNotification *)o_notification
{ {
p_intf = VLCIntf;
NSString* o_key; NSString* o_key;
playlist_t *p_playlist; playlist_t *p_playlist;
vlc_value_t val; vlc_value_t val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment