diff options
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/CredentialsDialog.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/CredentialsDialog.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/CredentialsDialog.cs index 58957a2b52..bd78d0e235 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/CredentialsDialog.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/CredentialsDialog.cs @@ -82,15 +82,15 @@ namespace MonoDevelop.VersionControl.Git e.ActivatesDefault = true; if (cred.IsValueSecure ()) e.Visibility = false; - if (c is CredentialItem.Username) - e.Text = uri.GetUser () ?? ""; - e.Changed += delegate { if (cred is CredentialItem.StringType) ((CredentialItem.StringType)cred).SetValue (e.Text); else ((CredentialItem.CharArrayType)cred).SetValue (e.Text.ToCharArray ()); }; + + if (c is CredentialItem.Username) + e.Text = uri.GetUser () ?? ""; } if (editor != null) { table.Attach (editor, 1, 2, r, r + 1); |