Commit 13b02723 authored by Andreas Traczyk's avatar Andreas Traczyk

settings: report changed ringtone

Change-Id: If238f4d355904af389c62db1e6a4e53fe17bb31a
parent 9c9d46b4
......@@ -158,7 +158,7 @@ AdvancedSettingsWidget::openFileCustomRingtone()
auto confProps = LRCInstance::accountModel().getAccountConfig(LRCInstance::getCurrAccId());
confProps.Ringtone.ringtonePath = fileUrl.toStdString();
LRCInstance::editableAccountModel()->setAccountConfig(LRCInstance::getCurrAccId(), confProps);
ui->btnRingtone->setText(QFileInfo(QString::fromStdString(LRCInstance::getCurrAccConfig().Ringtone.ringtonePath)).fileName());
ui->btnRingtone->setText(QFileInfo(fileUrl).fileName());
} else {
ui->btnRingtone->setText(tr("Add a custom ringtone"));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment