From ff1be58796668c1d103be9d4cad860a27923346d Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 17 May 2017 11:48:49 +0200 Subject: [PATCH] feat(src/components/core/CoreManager): force zrtp, user certificate, root ca paths. --- linphone-desktop/src/components/core/CoreManager.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/linphone-desktop/src/components/core/CoreManager.cpp b/linphone-desktop/src/components/core/CoreManager.cpp index 0a2cc4d7c..ce90e9850 100644 --- a/linphone-desktop/src/components/core/CoreManager.cpp +++ b/linphone-desktop/src/components/core/CoreManager.cpp @@ -103,14 +103,10 @@ void CoreManager::setDatabasesPaths () { } void CoreManager::setOtherPaths () { - if (mCore->getZrtpSecretsFile().empty()) - mCore->setZrtpSecretsFile(Paths::getZrtpSecretsFilePath()); - - if (mCore->getUserCertificatesPath().empty()) - mCore->setUserCertificatesPath(Paths::getUserCertificatesDirPath()); - - if (mCore->getRootCa().empty()) - mCore->setRootCa(Paths::getRootCaFilePath()); + // Force paths. Ask me why if it's a problem for you. + mCore->setZrtpSecretsFile(Paths::getZrtpSecretsFilePath()); + mCore->setUserCertificatesPath(Paths::getUserCertificatesDirPath()); + mCore->setRootCa(Paths::getRootCaFilePath()); } void CoreManager::setResourcesPaths () {