2
0

Java Client: fix unsaved sites not copying password to clipboard

This commit is contained in:
Michael Ziminsky (Z) 2018-10-24 22:50:44 -07:00
parent e29f16a0a7
commit 8be984f57e

View File

@ -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( "<html>Remember the site <strong>%s</strong>?</html>", site.getSiteName() ),
"New Site", JOptionPane.YES_NO_OPTION ))
return;
if (site instanceof MPNewSite &&
JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(
this,
strf("<html>Remember the site <strong>%s</strong>?</html>", site.getSiteName()),
"New Site",
JOptionPane.YES_NO_OPTION)) {
site = ((MPNewSite) site).addTo( user );
}