From 900ce4baa3c33ef342d88ebbbfb8cf369b979142 Mon Sep 17 00:00:00 2001 From: "Michael Ziminsky (Z)" Date: Sun, 5 May 2019 10:49:39 -0700 Subject: [PATCH] Java Client: Don't disable buttons when password is blank This would be better fixed by having native return an empty string instead of null, but I don't know what sort of side effects that would have elsewhere --- .../masterpassword/gui/view/UserContentPanel.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/view/UserContentPanel.java b/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/view/UserContentPanel.java index 5895d32a..f17d49ca 100644 --- a/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/view/UserContentPanel.java +++ b/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/view/UserContentPanel.java @@ -950,11 +950,11 @@ public class UserContentPanel extends JPanel implements MasterPassword.Listener, resultField.setText( EACH_CHARACTER.matcher( result ).replaceAll( "•" ) ); else resultField.setText( result ); - settingsButton.setEnabled( result != null ); - questionsButton.setEnabled( result != null ); - editButton.setEnabled( result != null ); - keyButton.setEnabled( result != null ); - deleteButton.setEnabled( result != null ); + settingsButton.setEnabled( site != null ); + questionsButton.setEnabled( site != null ); + editButton.setEnabled( site != null ); + keyButton.setEnabled( site != null ); + deleteButton.setEnabled( site != null ); } ); }