Fixed: Catch exception when calling [NSApp sendEvent:event] and log it

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 6d60266086
commit 7f8b9954f5

@ -442,9 +442,16 @@ void CCocoaEventEmitter::submitEvents(CEventServer& server, bool /* allWins */)
processMessage(event, &server);
}
@try
{
// forward the event to the cocoa application
[NSApp sendEvent:event];
}
@catch(NSException *e)
{
nlwarning("Exception when sending event: %s", [[e reason] UTF8String]);
}
}
_server = &server;
}

Loading…
Cancel
Save