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, mModelConnection->makeConnectToModel(&CoreModel::configuringStatus,
const std::string &message) { [this](const std::shared_ptr<linphone::Core> &core,
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO)); linphone::ConfiguringState status, const std::string &message) {
if (status == linphone::ConfiguringState::Successful) emit lUpdate(); mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
}); if (status == linphone::ConfiguringState::Successful) emit lUpdate();
});
emit lUpdate(); emit lUpdate();
} }