From bea6ac5e68d6eb5c0765e5e1cd43b4aea92200db Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Wed, 31 Dec 2014 14:04:14 -0500 Subject: [PATCH] Attempt to fix copy issue when Java app closes after copying. --- .../java/com/lyndir/masterpassword/gui/PasswordFrame.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); } } ); }