Commit 072a024f authored by Egor.Ushakov's avatar Egor.Ushakov
Browse files

set frame as a parent in evaluate dialogs, it prevents it from closing when...

set frame as a parent in evaluate dialogs, it prevents it from closing when opened from another evaluate dialog
parent a6d103fa
Showing with 2 additions and 1 deletion
+2 -1
......@@ -25,6 +25,7 @@ import com.intellij.openapi.ui.DialogWrapper;
import com.intellij.openapi.util.Condition;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.wm.IdeFocusManager;
import com.intellij.openapi.wm.WindowManager;
import com.intellij.util.ui.JBUI;
import com.intellij.xdebugger.*;
import com.intellij.xdebugger.evaluation.EvaluationMode;
......@@ -70,7 +71,7 @@ public class XDebuggerEvaluationDialog extends DialogWrapper {
@NotNull XDebuggerEvaluator evaluator,
@NotNull XExpression text,
@Nullable XSourcePosition sourcePosition) {
super(session.getProject(), true);
super(WindowManager.getInstance().getFrame(session.getProject()), true);
mySession = session;
myEditorsProvider = editorsProvider;
mySourcePosition = sourcePosition;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment