From 4b2ecde6bb14c2dcf44d1ef1688c6588c860f735 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Wed, 15 Apr 2026 10:38:30 +0200 Subject: [PATCH] Defer ChatProxy::invalidate() to avoid accessibility crash on macOS (QTBUG-95764) --- Linphone/core/chat/ChatProxy.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Linphone/core/chat/ChatProxy.cpp b/Linphone/core/chat/ChatProxy.cpp index 9266e4b20..3d4cb462f 100644 --- a/Linphone/core/chat/ChatProxy.cpp +++ b/Linphone/core/chat/ChatProxy.cpp @@ -23,6 +23,8 @@ #include "ChatList.hpp" #include "core/App.hpp" +#include + DEFINE_ABSTRACT_OBJECT(ChatProxy) ChatProxy::ChatProxy(QObject *parent) { @@ -50,7 +52,8 @@ void ChatProxy::setSourceModel(QAbstractItemModel *model) { emit chatAdded(new ChatGui(chatCore)); } }); - connect(newChatList, &ChatList::dataChanged, this, [this] { invalidate(); }); + connect(newChatList, &ChatList::dataChanged, this, + [this] { QTimer::singleShot(0, this, [this] { invalidate(); }); }); newChatList->lUpdate(); } QSortFilterProxyModel::setSourceModel(newChatList);