Populate the callto combo if we succeed to start a new call.

git-svn-id: http://voip.null.ro/svn/yate@1439 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
oana 2007-08-27 16:28:37 +00:00
parent 2873202827
commit 3e1853d145
1 changed files with 5 additions and 1 deletions

View File

@ -1103,7 +1103,11 @@ bool Client::action(Window* wnd, const String& name)
getText("account",account,wnd);
account.trimBlanks();
fixDashes(account);
return callStart(target,line,proto,account);
if (!callStart(target,line,proto,account))
return false;
delOption("callto",target,wnd);
addOption("callto",target,true,target,wnd);
return true;
}
else if (name.startsWith("callto:"))
return callStart(name.substr(7));