mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-138300 Settings dialog doesn't detect changes unless changing focus
This commit is contained in:
+3
-1
@@ -194,7 +194,9 @@ class ConfigurableEditor extends AbstractEditor implements AnActionListener, AWT
|
||||
Window editor = UIUtil.getWindow(this);
|
||||
if (editor != null) {
|
||||
Window popup = UIUtil.getWindow(component);
|
||||
if (popup != null && editor == popup.getParent()) {
|
||||
// light-weight popup is located on the layered pane of the same window
|
||||
// heavy-weight popup opens new window with the corresponding parent
|
||||
if (popup == editor || popup != null && editor == popup.getParent()) {
|
||||
if (popup instanceof JDialog) {
|
||||
JDialog dialog = (JDialog)popup;
|
||||
return Dialog.ModalityType.MODELESS == dialog.getModalityType();
|
||||
|
||||
Reference in New Issue
Block a user