make sure Linphone Core paths are only set if not available, also for zrtpSecrets

This commit is contained in:
Johan Pascal 2017-04-18 23:51:29 +07:00
parent 6a68d34fcf
commit fbd2f7551c

View file

@ -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());