Commit d89dd67a 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.

(cherry picked from commit 34e54feea7de9f75e6b2085df4a12235a516571a)
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent 27fcabe2
......@@ -140,12 +140,12 @@ static VLCMainMenu *_o_sharedInstance = nil;
}
[self setRateControlsEnabled:NO];
p_intf = VLCIntf;
}
- (void)applicationWillFinishLaunching:(NSNotification *)o_notification
{
p_intf = VLCIntf;
NSString* o_key;
playlist_t *p_playlist;
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