mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-34246 - IAE: JDialog <init>
Workaround
This commit is contained in:
@@ -190,7 +190,7 @@ public class DialogWrapperPeerImpl extends DialogWrapperPeer {
|
||||
else {
|
||||
ActionCallback focused = new ActionCallback("DialogFocusedCallback");
|
||||
ActionCallback typeAheadDone = new ActionCallback("DialogTypeAheadDone");
|
||||
MyDialog dialog = new MyDialog(owner, wrapper, project, focused, typeAheadDone, typeAhead);
|
||||
MyDialog dialog = new MyDialog(OwnerOptional.fromComponent(owner).get(), wrapper, project, focused, typeAheadDone, typeAhead);
|
||||
dialog.setModalityType(ideModalityType.toAwtModality());
|
||||
return dialog;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ package com.intellij.util.ui;
|
||||
|
||||
import com.intellij.ide.IdeEventQueue;
|
||||
import com.intellij.ide.IdePopupManager;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.wm.IdeFrame;
|
||||
import com.intellij.openapi.wm.WindowManager;
|
||||
import com.intellij.util.Consumer;
|
||||
@@ -52,9 +53,7 @@ public class OwnerOptional {
|
||||
|
||||
if (manager.isPopupWindow(owner)) {
|
||||
|
||||
//manager.closeAllPopups();
|
||||
|
||||
if (!owner.isFocused()) {
|
||||
if (!owner.isFocused() || !SystemInfo.isJetBrainsJvm) {
|
||||
owner = owner.getOwner();
|
||||
|
||||
while (owner != null
|
||||
|
||||
Reference in New Issue
Block a user