Skip to content
Snippets Groups Projects
Commit 6af096c9 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

misc: fix setCurrentCall when switching between two different calls

Change-Id: Ia84b8580e02eeba946209e472caafcea03b85444
parent 12052317
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,10 @@ CurrentCall::updateId(QString callId)
return;
}
// Set the current id_ if there is a call.
auto& accInfo = lrcInstance_->getCurrentAccountInfo();
if (accInfo.profileInfo.type != lrc::api::profile::Type::SIP)
accInfo.callModel->setCurrentCall(callId);
// Set the current id_ if there is a call.
set_id((accInfo.callModel->hasCall(callId) ? callId : QString()));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment