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 ); }