Browse Source

REPORT-3163 合作开发9.0设计器=>修复弹出子对话框时,悬浮弹窗异常关闭问题

master
plough 7 years ago
parent
commit
ef5e7fe3e6
  1. 6
      designer_base/src/com/fr/design/gui/controlpane/UIControlPane.java

6
designer_base/src/com/fr/design/gui/controlpane/UIControlPane.java

@ -301,6 +301,12 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH
return; return;
} }
} }
// 如果有可见模态对话框,则不隐藏
for (Window window : DesignerContext.getDesignerFrame().getOwnedWindows()) {
if (window instanceof JDialog && window.isVisible() && ((JDialog)window).isModal()) {
return;
}
}
saveSettings(); saveSettings();
setVisible(false); setVisible(false);
} }

Loading…
Cancel
Save