Skip to content
Snippets Groups Projects
Commit 13b02723 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

settings: report changed ringtone

Change-Id: If238f4d355904af389c62db1e6a4e53fe17bb31a
parent 9c9d46b4
No related branches found
No related tags found
No related merge requests found
...@@ -158,7 +158,7 @@ AdvancedSettingsWidget::openFileCustomRingtone() ...@@ -158,7 +158,7 @@ AdvancedSettingsWidget::openFileCustomRingtone()
auto confProps = LRCInstance::accountModel().getAccountConfig(LRCInstance::getCurrAccId()); auto confProps = LRCInstance::accountModel().getAccountConfig(LRCInstance::getCurrAccId());
confProps.Ringtone.ringtonePath = fileUrl.toStdString(); confProps.Ringtone.ringtonePath = fileUrl.toStdString();
LRCInstance::editableAccountModel()->setAccountConfig(LRCInstance::getCurrAccId(), confProps); LRCInstance::editableAccountModel()->setAccountConfig(LRCInstance::getCurrAccId(), confProps);
ui->btnRingtone->setText(QFileInfo(QString::fromStdString(LRCInstance::getCurrAccConfig().Ringtone.ringtonePath)).fileName()); ui->btnRingtone->setText(QFileInfo(fileUrl).fileName());
} else { } else {
ui->btnRingtone->setText(tr("Add a custom ringtone")); ui->btnRingtone->setText(tr("Add a custom ringtone"));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment