From 30f08bac93266d42a776945f7e89cfb6c96dbe80 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Wed, 8 Jan 2025 15:59:15 +0100 Subject: [PATCH] Fix ldap enabled option. --- Linphone/core/address-books/ldap/LdapCore.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Linphone/core/address-books/ldap/LdapCore.cpp b/Linphone/core/address-books/ldap/LdapCore.cpp index 33a1201cd..81fbb25f0 100644 --- a/Linphone/core/address-books/ldap/LdapCore.cpp +++ b/Linphone/core/address-books/ldap/LdapCore.cpp @@ -51,6 +51,7 @@ LdapCore::LdapCore(const std::shared_ptr &ldap INIT_CORE_MEMBER(SipAttribute, mLdapModel) INIT_CORE_MEMBER(SipDomain, mLdapModel) INIT_CORE_MEMBER(Debug, mLdapModel) + INIT_CORE_MEMBER(Enabled, mLdapModel) } LdapCore::~LdapCore() { @@ -138,8 +139,8 @@ void LdapCore::writeFromModel(const std::shared_ptr &model) { void LdapCore::save() { mLdapModelConnection->invokeToModel([this]() { mustBeInLinphoneThread(log().arg(Q_FUNC_INFO)); - mLdapModel->save(); writeIntoModel(mLdapModel); + mLdapModel->save(); mLdapModelConnection->invokeToCore([this] { setSaved(true); }); }); } @@ -148,4 +149,4 @@ void LdapCore::undo() { if (mLdapModel) { mLdapModelConnection->invokeToModel([this] { writeFromModel(mLdapModel); }); } -} \ No newline at end of file +}