diff --git a/src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/LoginDialog.cs b/src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/LoginDialog.cs index fd11a690f6..94346c2b60 100644 --- a/src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/LoginDialog.cs +++ b/src/AddIns/Misc/SubversionAddIn/Project/Src/Gui/AuthentificationDialogs/LoginDialog.cs @@ -79,6 +79,7 @@ namespace ICSharpCode.Svn.Gui this.Realm = realm; this.MaySave = maySave; ((CheckBox)ControlDictionary["showPasswordCheckBox"]).CheckedChanged += new EventHandler(ShowPasswordCheckBoxCheckedChanged); + ((TextBox)ControlDictionary["pwd1TextBox"]).PasswordChar = '*'; ((TextBox)ControlDictionary["pwd2TextBox"]).PasswordChar = '*'; ((TextBox)ControlDictionary["pwd1TextBox"]).TextChanged += new EventHandler(PasswordTextChanged); @@ -94,6 +95,7 @@ namespace ICSharpCode.Svn.Gui ((TextBox)ControlDictionary["pwd2TextBox"]).Enabled = false; } else { ((TextBox)ControlDictionary["pwd1TextBox"]).PasswordChar = '*'; + ((TextBox)ControlDictionary["pwd2TextBox"]).Enabled = true; } } diff --git a/src/AddIns/Misc/SubversionAddIn/Project/Src/SvnClient.cs b/src/AddIns/Misc/SubversionAddIn/Project/Src/SvnClient.cs index 0ff6d6241f..8ab9f1e724 100644 --- a/src/AddIns/Misc/SubversionAddIn/Project/Src/SvnClient.cs +++ b/src/AddIns/Misc/SubversionAddIn/Project/Src/SvnClient.cs @@ -242,7 +242,7 @@ namespace ICSharpCode.Svn SimpleCredential PasswordPrompt(string realm, string userName, bool maySave) { using (LoginDialog loginDialog = new LoginDialog(realm, userName, maySave)) { - if (loginDialog.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm) == DialogResult.OK) { + if (WorkbenchSingleton.SafeThreadFunction(loginDialog.ShowDialog, WorkbenchSingleton.MainForm) == DialogResult.OK) { return loginDialog.Credential; } } @@ -252,7 +252,7 @@ namespace ICSharpCode.Svn SslServerTrustCredential SslServerTrustPrompt(string realm, SslFailures failures, SslServerCertificateInfo info, bool maySave) { using (SslServerTrustDialog sslServerTrustDialog = new SslServerTrustDialog(info, failures, maySave)) { - if (sslServerTrustDialog.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm) == DialogResult.OK) { + if (WorkbenchSingleton.SafeThreadFunction(sslServerTrustDialog.ShowDialog, WorkbenchSingleton.MainForm) == DialogResult.OK) { return sslServerTrustDialog.Credential; } } @@ -262,7 +262,7 @@ namespace ICSharpCode.Svn SslClientCertificatePasswordCredential ClientCertificatePasswordPrompt(string realm, bool maySave) { using (ClientCertPassphraseDialog clientCertPassphraseDialog = new ClientCertPassphraseDialog(realm, maySave)) { - if (clientCertPassphraseDialog.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm) == DialogResult.OK) { + if (WorkbenchSingleton.SafeThreadFunction(clientCertPassphraseDialog.ShowDialog, WorkbenchSingleton.MainForm) == DialogResult.OK) { return clientCertPassphraseDialog.Credential; } } @@ -272,7 +272,7 @@ namespace ICSharpCode.Svn SslClientCertificateCredential ClientCertificatePrompt(string realm, bool maySave) { using (ClientCertDialog clientCertDialog = new ClientCertDialog(realm, maySave)) { - if (clientCertDialog.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm) == DialogResult.OK) { + if (WorkbenchSingleton.SafeThreadFunction(clientCertDialog.ShowDialog, WorkbenchSingleton.MainForm) == DialogResult.OK) { return clientCertDialog.Credential; } }