only execute app-startup behaviour if we are not a plug-in
This commit is contained in:
@@ -427,6 +427,8 @@ bool wxApp::CallOnInit()
|
||||
m_onInitResult = false;
|
||||
m_inited = false;
|
||||
|
||||
if ( !sm_isEmbedded )
|
||||
{
|
||||
// Feed the upcoming event loop with a dummy event. Without this,
|
||||
// [NSApp run] below wouldn't return, as we expect it to, if the
|
||||
// application was launched without being activated and would block
|
||||
@@ -440,10 +442,11 @@ bool wxApp::CallOnInit()
|
||||
subtype:0 data1:0 data2:0];
|
||||
[NSApp postEvent:event atStart:FALSE];
|
||||
[NSApp run];
|
||||
}
|
||||
|
||||
m_onInitResult = OnInit();
|
||||
m_inited = true;
|
||||
if ( m_onInitResult )
|
||||
if ( !sm_isEmbedded && m_onInitResult )
|
||||
{
|
||||
if ( m_openFiles.GetCount() > 0 )
|
||||
MacOpenFiles(m_openFiles);
|
||||
|
Reference in New Issue
Block a user