From: Stefan Csomor Date: Sat, 17 Jul 2010 06:08:13 +0000 (+0000) Subject: removing early init, fixes #12231 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e8f25fcf5dc630fda8569c1d063c4e19770de9eb removing early init, fixes #12231 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index 59420be784..e8d122f171 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -210,8 +210,12 @@ bool wxApp::DoInitGui() NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager]; [appleEventManager setEventHandler:controller andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL]; - + + // calling finishLaunching so early before running the loop seems to trigger some 'MenuManager compatibility' which leads + // to the duplication of menus under 10.5 and a warning under 10.6 +#if 0 [NSApp finishLaunching]; +#endif } return true; }