Fix succesfull configuration payload type list update threading

This commit is contained in:
Christophe Deschamps 2025-01-09 10:19:07 +01:00
parent cfe3c49a68
commit 98cadf8b5d

View file

@ -94,12 +94,14 @@ void PayloadTypeList::setSelf(QSharedPointer<PayloadTypeList> me) {
});
});
});
QObject::connect(CoreModel::getInstance().get(), &CoreModel::configuringStatus, this,
[this](const std::shared_ptr<linphone::Core> &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<linphone::Core> &core,
linphone::ConfiguringState status, const std::string &message) {
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
if (status == linphone::ConfiguringState::Successful) emit lUpdate();
});
emit lUpdate();
}