Find identity for current key pair in the correct list.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 20 Sep 2012 13:19:58 +0000 (15:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 20 Sep 2012 13:19:58 +0000 (15:19 +0200)
src/main/java/de/todesbaum/jsite/gui/KeyDialog.java

index 88eb2ca..732bb6e 100644 (file)
@@ -203,7 +203,7 @@ public class KeyDialog extends JDialog {
                }
                int selectedIndex = -1;
                int index = 0;
-               for (OwnIdentity ownIdentity : ownIdentities) {
+               for (OwnIdentity ownIdentity : this.ownIdentities) {
                        if (ownIdentity.getInsertUri().equals(privateKey) && ownIdentity.getRequestUri().equals(publicKey)) {
                                selectedIndex = index;
                        }