diff --git a/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java b/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java index b52ac3e4..4dfca87d 100644 --- a/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java +++ b/MasterPassword/Java/masterpassword-gui/src/main/java/com/lyndir/masterpassword/gui/PasswordFrame.java @@ -104,10 +104,7 @@ public class PasswordFrame extends JFrame implements DocumentListener { passwordField.setText( null ); siteNameField.setText( null ); - if (getDefaultCloseOperation() == WindowConstants.EXIT_ON_CLOSE) - System.exit( 0 ); - else - dispose(); + dispose(); } } ); }