From fbd2f7551c0ec2a670b911201219686feabff237 Mon Sep 17 00:00:00 2001 From: Johan Pascal Date: Tue, 18 Apr 2017 23:51:29 +0700 Subject: [PATCH] make sure Linphone Core paths are only set if not available, also for zrtpSecrets --- linphone-desktop/src/components/core/CoreManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linphone-desktop/src/components/core/CoreManager.cpp b/linphone-desktop/src/components/core/CoreManager.cpp index 860e9b684..130a730b4 100644 --- a/linphone-desktop/src/components/core/CoreManager.cpp +++ b/linphone-desktop/src/components/core/CoreManager.cpp @@ -92,7 +92,8 @@ void CoreManager::setDatabasesPaths () { } void CoreManager::setOtherPaths () { - mCore->setZrtpSecretsFile(Paths::getZrtpSecretsFilepath()); + if (mCore->getZrtpSecretsFile().empty()) + mCore->setZrtpSecretsFile(Paths::getZrtpSecretsFilepath()); if (mCore->getUserCertificatesPath().empty()) mCore->setUserCertificatesPath(Paths::getUserCertificatesDirpath());