diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index 61f8c420c6..55e08c7965 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -119,7 +119,10 @@ void wxBell() wxUnusedVar(replyEvent); NSString* url = [[event descriptorAtIndex:1] stringValue]; wxCFStringRef cf(wxCFRetain(url)); - wxTheApp->MacOpenURL(cf.AsString()) ; + if ( wxTheApp->OSXInitWasCalled() ) + wxTheApp->MacOpenURL(cf.AsString()) ; + else + wxTheApp->OSXStoreOpenURL(cf.AsString()); } - (void)handleOpenAppEvent:(NSAppleEventDescriptor *)event