- Bug 143846. Suppress current key from being linked to itself.

This commit is contained in:
Jim Norman 2006-01-19 18:17:58 +00:00
parent 6785254649
commit d43c04b42b
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 19 11:17:34 MST 2006 - jnorman@novell.com
- Bug 143846. Suppress current key from being linked to itself.
-------------------------------------------------------------------
Thu Jan 19 10:57:34 MST 2006 - jnorman@novell.com

View File

@ -1043,6 +1043,11 @@ public class MiCasa : Store
NameValueCollection nvc = secret.getKeyValueCollection();
for (int i=0; i<nvc.Count; i++)
{
// don't allow linking this key to ourself.
if (labelLinkSecretID.Text.Equals(selected)
&& labelLinkKeyID.Text.Equals(nvc.GetKey(i)))
continue;
tsAvailableKeys.AppendValues(nvc.GetKey(i), nvc.GetValues(i)[0]);
}
}