Skip to content
Snippets Groups Projects
Commit b0fbde11 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

misc: change allowIncoming key to DHT.PublicInCalls

Change-Id: If9502db49586fa10e220eac49ab7a21724c356c9
parent 45bb290f
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ AdvancedSettingsWidget::updateAdvancedSettings() ...@@ -108,7 +108,7 @@ AdvancedSettingsWidget::updateAdvancedSettings()
{ {
auto config = LRCInstance::getCurrAccConfig(); auto config = LRCInstance::getCurrAccConfig();
//Call Settings //Call Settings
ui->checkBoxUntrusted->setChecked(config.allowIncoming); ui->checkBoxUntrusted->setChecked(config.DHT.PublicInCalls);
ui->checkBoxAutoAnswer->setChecked(config.autoAnswer); ui->checkBoxAutoAnswer->setChecked(config.autoAnswer);
ui->checkBoxCustomRingtone->setChecked(config.Ringtone.ringtoneEnabled); ui->checkBoxCustomRingtone->setChecked(config.Ringtone.ringtoneEnabled);
...@@ -154,7 +154,7 @@ void ...@@ -154,7 +154,7 @@ void
AdvancedSettingsWidget::setCallsUntrusted(bool state) AdvancedSettingsWidget::setCallsUntrusted(bool state)
{ {
auto confProps = LRCInstance::accountModel().getAccountConfig(LRCInstance::getCurrAccId()); auto confProps = LRCInstance::accountModel().getAccountConfig(LRCInstance::getCurrAccId());
confProps.allowIncoming = state; confProps.DHT.PublicInCalls = state;
LRCInstance::accountModel().setAccountConfig(LRCInstance::getCurrAccId(), confProps); LRCInstance::accountModel().setAccountConfig(LRCInstance::getCurrAccId(), confProps);
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment