mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
Fix crash when terminating a call.
This commit is contained in:
parent
a5301bd410
commit
5a29621141
1 changed files with 2 additions and 1 deletions
|
|
@ -159,9 +159,10 @@ void ChatProxyModel::setSipAddress (const QString &sipAddress) {
|
|||
}
|
||||
|
||||
mChatModel = CoreManager::getInstance()->getChatModelFromSipAddress(sipAddress);
|
||||
mChatModel->resetMessagesCount();
|
||||
|
||||
if (mChatModel) {
|
||||
mChatModel->resetMessagesCount();
|
||||
|
||||
ChatModel *chatModel = mChatModel.get();
|
||||
QObject::connect(chatModel, &ChatModel::isRemoteComposingChanged, this, &ChatProxyModel::handleIsRemoteComposingChanged);
|
||||
QObject::connect(chatModel, &ChatModel::messageReceived, this, &ChatProxyModel::handleMessageReceived);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue