Skip to content
Snippets Groups Projects
Commit ddb8c518 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account: update config when reseting ringtonePath

Change-Id: I61e8237f6994d024b48d1783e108b4d4a763b097
parent 3e28557e
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,6 @@ Account::Account(const std::string& accountID) ...@@ -74,8 +74,6 @@ Account::Account(const std::string& accountID)
, accountID_(accountID) , accountID_(accountID)
, registrationState_(RegistrationState::UNREGISTERED) , registrationState_(RegistrationState::UNREGISTERED)
, systemCodecContainer_(getSystemCodecContainer()) , systemCodecContainer_(getSystemCodecContainer())
, accountCodecInfoList_()
, ringtonePath_()
{ {
// Initialize the codec order, used when creating a new account // Initialize the codec order, used when creating a new account
loadDefaultCodecs(); loadDefaultCodecs();
...@@ -165,7 +163,8 @@ Account::loadConfig() { ...@@ -165,7 +163,8 @@ Account::loadConfig() {
// In this case, fallback on the default ringtone path // In this case, fallback on the default ringtone path
if (!fileutils::isFile(ringtonePath_)) { if (!fileutils::isFile(ringtonePath_)) {
JAMI_WARNING("Ringtone {} is not a valid file", ringtonePath_); JAMI_WARNING("Ringtone {} is not a valid file", ringtonePath_);
ringtonePath_ = fileutils::getFullPath(ringtoneDir, DEFAULT_RINGTONE_PATH);; config_->ringtonePath = DEFAULT_RINGTONE_PATH;
ringtonePath_ = fileutils::getFullPath(ringtoneDir, config_->ringtonePath);
} }
updateUpnpController(); updateUpnpController();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment