提交 824b310a 编写于 作者: A art

6987896: Modal dialogs resumes the calling thread before it's hidden

Reviewed-by: anthony
上级 139f2e50
...@@ -1068,7 +1068,7 @@ public class Dialog extends Window { ...@@ -1068,7 +1068,7 @@ public class Dialog extends Window {
modalityPushed(); modalityPushed();
try { try {
EventQueue eventQueue = Toolkit.getDefaultToolkit().getSystemEventQueue(); EventQueue eventQueue = Toolkit.getDefaultToolkit().getSystemEventQueue();
secondaryLoop = eventQueue.createSecondaryLoop(cond, modalFilter, 5000); secondaryLoop = eventQueue.createSecondaryLoop(cond, modalFilter, 0);
if (!secondaryLoop.enter()) { if (!secondaryLoop.enter()) {
secondaryLoop = null; secondaryLoop = null;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册