From 8be984f57e8054f37223eed8772000b5bf657747 Mon Sep 17 00:00:00 2001 From: "Michael Ziminsky (Z)" Date: Wed, 24 Oct 2018 22:50:44 -0700 Subject: [PATCH] Java Client: fix unsaved sites not copying password to clipboard --- .../masterpassword/gui/view/UserContentPanel.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 21714b15..8af646da 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 @@ -856,12 +856,12 @@ public class UserContentPanel extends JPanel implements MasterPassword.Listener, private void useSite(final ActionEvent event) { MPSite site = getSite(); - if (site instanceof MPNewSite) { - if (JOptionPane.YES_OPTION != JOptionPane.showConfirmDialog( - this, strf( "Remember the site %s?", site.getSiteName() ), - "New Site", JOptionPane.YES_NO_OPTION )) - return; - + if (site instanceof MPNewSite && + JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog( + this, + strf("Remember the site %s?", site.getSiteName()), + "New Site", + JOptionPane.YES_NO_OPTION)) { site = ((MPNewSite) site).addTo( user ); }