Commit 26f75372 authored by Sylvain Berfini's avatar Sylvain Berfini

Fixed ProxyConfig.Done() crash

parent 57aaf348
......@@ -402,13 +402,13 @@ namespace Linphone.Model
String username = GetNew(UsernameKeyName);
String password = GetNew(PasswordKeyName);
String domain = GetNew(DomainKeyName);
String proxy = GetNew(ProxyKeyName);
String displayname = GetNew(DisplayNameKeyName);
bool outboundProxy = Convert.ToBoolean(GetNew(OutboundProxyKeyName));
lc.ClearAuthInfos();
lc.ClearProxyConfigs();
if ((username != null) && (username.Length > 0) && (domain != null) && (domain.Length > 0))
{
String proxy = GetNew(ProxyKeyName);
if ((proxy != null) && (proxy.Length > 0))
{
proxy = String.Format("sip:{0}", proxy);
......
......@@ -51,6 +51,15 @@ namespace Linphone.Views
private void save_Click_1(object sender, EventArgs e)
{
if (Domain.Text.Contains(":"))
{
if (Proxy.Text.Length == 0)
{
Proxy.Text = Domain.Text;
}
Domain.Text = Domain.Text.Split(':')[0];
}
_settings.Username = Username.Text;
_settings.Password = Password.Password;
_settings.Domain = Domain.Text;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment