Skip to content
Snippets Groups Projects
Commit 79b36e4a authored by Alexandre Lision's avatar Alexandre Lision Committed by Guillaume Roguez
Browse files

call: set startTimeStamp before tracking the call

When adding a call to a ContactMethod the lastUsedChanged is emitted
if the startTimeStamp > 0. We will need this signal to reorder
the recentmodel.

Issue: #75334
Change-Id: Ic469b75a789ab2683566bd02de2fa4e724dcea77
parent d27b11fb
No related branches found
No related tags found
No related merge requests found
...@@ -1635,11 +1635,11 @@ void CallPrivate::call() ...@@ -1635,11 +1635,11 @@ void CallPrivate::call()
m_PeerName = contact->formattedName(); m_PeerName = contact->formattedName();
} }
setStartTimeStamp();
CallModel::instance()->registerCall(q_ptr); CallModel::instance()->registerCall(q_ptr);
connect(m_pPeerContactMethod, SIGNAL(presentChanged(bool)), this, SLOT(updated())); connect(m_pPeerContactMethod, SIGNAL(presentChanged(bool)), this, SLOT(updated()));
m_pPeerContactMethod->addCall(q_ptr); m_pPeerContactMethod->addCall(q_ptr);
setStartTimeStamp();
// m_pDialNumber is now deprecated by m_pPeerContactMethod // m_pDialNumber is now deprecated by m_pPeerContactMethod
emit q_ptr->dialNumberChanged(QString()); emit q_ptr->dialNumberChanged(QString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment