From e8f25fcf5dc630fda8569c1d063c4e19770de9eb Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 17 Jul 2010 06:08:13 +0000 Subject: [PATCH] removing early init, fixes #12231 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/utils.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.45.2