Merge pull request #646 from teyrana/640-fix-dialog-close

[fixes #640] Dialogs should now close with the [x] button
This commit is contained in:
Daniel Williams 2020-05-02 12:01:59 -04:00 committed by GitHub
commit 8288de651f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,6 @@ public class ComponentConfigDialog extends JDialog implements ComponentChangeLis
GUIUtil.rememberWindowPosition(this);
// overrides common defaults in 'GUIUTIL.setDisposableDialogOptions', above
setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
/**
* Triggered by the 'Close' Button on the ConfigDialogs. AND Esc. AND the [x] button (on Windows)