Skip to content
Snippets Groups Projects
Commit 3b3c7f3f authored by Emmanuel Lepage's avatar Emmanuel Lepage
Browse files

Alternative can now be selected from the call view context menu

parent 6582ea4d
Branches
Tags
No related merge requests found
...@@ -159,7 +159,12 @@ template<typename CallWidget, typename Index> Call* CallModel<CallWidget,Index>: ...@@ -159,7 +159,12 @@ template<typename CallWidget, typename Index> Call* CallModel<CallWidget,Index>:
///Create a new dialing call from peer name and the account ID ///Create a new dialing call from peer name and the account ID
template<typename CallWidget, typename Index> Call* CallModel<CallWidget,Index>::addDialingCall(const QString & peerName, QString account) template<typename CallWidget, typename Index> Call* CallModel<CallWidget,Index>::addDialingCall(const QString & peerName, QString account)
{ {
Call* call = Call::buildDialingCall(generateCallId(), peerName, account); QString account2 = account;
if (account2.isEmpty()) {
account2 = getCurrentAccountId();
}
Call* call = Call::buildDialingCall(generateCallId(), peerName, account2);
activeCalls[call->getCallId()] = call; activeCalls[call->getCallId()] = call;
addCall(call); addCall(call);
selectItem(call); selectItem(call);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment