提交 e1816aed 编写于 作者: P pchelko

8011686: AWT accidentally disables the NSApplicationDelegate of SWT, causing...

8011686: AWT accidentally disables the NSApplicationDelegate of SWT, causing loss of OS X integration functionality
Reviewed-by: anthony, serb
Contributed-by: NMarkus Persson <markus.persson@oracle.com>
上级 0d1cf430
......@@ -316,7 +316,10 @@ AWT_ASSERT_APPKIT_THREAD;
// its finishLaunching has initialized it.
// ApplicationDelegate is the support code for com.apple.eawt.
[ThreadUtilities performOnMainThreadWaiting:YES block:^(){
OSXAPP_SetApplicationDelegate([ApplicationDelegate sharedDelegate]);
id<NSApplicationDelegate> delegate = [ApplicationDelegate sharedDelegate];
if (delegate != nil) {
OSXAPP_SetApplicationDelegate(delegate);
}
}];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册