2
0

Properly invoke the default close operation when dismissing the password frame.

This commit is contained in:
Maarten Billemont 2015-01-02 12:19:49 -05:00
parent e9094097a2
commit b15f2a8a26
3 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public class AppleGUI extends GUI {
@Override
protected PasswordFrame newPasswordFrame(final User user) {
PasswordFrame frame = super.newPasswordFrame( user );
frame.setDefaultCloseOperation( WindowConstants.DISPOSE_ON_CLOSE );
frame.setDefaultCloseOperation( WindowConstants.HIDE_ON_CLOSE );
return frame;
}

View File

@ -21,7 +21,6 @@ import com.google.common.base.Charsets;
import com.google.common.io.*;
import com.lyndir.lhunath.opal.system.logging.Logger;
import com.lyndir.lhunath.opal.system.util.TypeUtils;
import com.lyndir.masterpassword.MasterKey;
import java.io.*;
import java.net.URI;
import java.net.URL;

View File

@ -106,7 +106,7 @@ public class PasswordFrame extends JFrame implements DocumentListener {
passwordField.setText( null );
siteNameField.setText( null );
dispose();
dispatchEvent( new WindowEvent( PasswordFrame.this, WindowEvent.WINDOW_CLOSING ) );
}
} );
}