IDEA-138300 Settings dialog doesn't detect changes unless changing focus

This commit is contained in:
Sergey Malenkov
2015-07-03 22:37:22 +03:00
parent 1e0956f884
commit a13a1dbdc4
@@ -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();