- Bug 143846. Suppress current key from being linked to itself.
This commit is contained in:
parent
6785254649
commit
d43c04b42b
@ -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
|
||||
|
||||
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user