Skip to content
Snippets Groups Projects
Unverified Commit 68a8f179 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

callmodel: only setCurrentCall when in progress

Change-Id: I9378a59bd06f11d3001fbf4dab42bf3465e33769
parent 1d900c23
No related branches found
No related tags found
No related merge requests found
......@@ -714,10 +714,7 @@ NewCallModelPimpl::slotCallStateChanged(const QString& callId, const QString& st
// NOTE: signal emission order matters, always emit CallStatusChanged before CallEnded
emit linked.callStatusChanged(callId, code);
if (call->status == call::Status::OUTGOING_RINGING
&& linked.owner.profileInfo.type != profile::Type::SIP) {
linked.setCurrentCall(callId);
} else if (call->status == call::Status::ENDED) {
if (call->status == call::Status::ENDED) {
emit linked.callEnded(callId);
} else if (call->status == call::Status::IN_PROGRESS) {
if (previousStatus == call::Status::INCOMING_RINGING
......
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