callmodel: only setCurrentCall when in progress

Change-Id: I9378a59bd06f11d3001fbf4dab42bf3465e33769
parent 1d900c23
......@@ -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
......
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