Commit 5a296211 authored by Ghislain MARY's avatar Ghislain MARY

Fix crash when terminating a call.

parent a5301bd4
......@@ -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);
......
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