From 98cadf8b5d5ffd47da42253f8d6dfde1c13e6aa5 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Thu, 9 Jan 2025 10:19:07 +0100 Subject: [PATCH] Fix succesfull configuration payload type list update threading --- Linphone/core/payload-type/PayloadTypeList.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Linphone/core/payload-type/PayloadTypeList.cpp b/Linphone/core/payload-type/PayloadTypeList.cpp index 6a52b3f78..34d035b84 100644 --- a/Linphone/core/payload-type/PayloadTypeList.cpp +++ b/Linphone/core/payload-type/PayloadTypeList.cpp @@ -94,12 +94,14 @@ void PayloadTypeList::setSelf(QSharedPointer me) { }); }); }); - QObject::connect(CoreModel::getInstance().get(), &CoreModel::configuringStatus, this, - [this](const std::shared_ptr &core, linphone::ConfiguringState status, - const std::string &message) { - mustBeInLinphoneThread(log().arg(Q_FUNC_INFO)); - if (status == linphone::ConfiguringState::Successful) emit lUpdate(); - }); + + mModelConnection->makeConnectToModel(&CoreModel::configuringStatus, + [this](const std::shared_ptr &core, + linphone::ConfiguringState status, const std::string &message) { + mustBeInLinphoneThread(log().arg(Q_FUNC_INFO)); + if (status == linphone::ConfiguringState::Successful) emit lUpdate(); + }); + emit lUpdate(); }