Skip to content
Snippets Groups Projects
Commit 3f8697e5 authored by Ming Rui Zhang's avatar Ming Rui Zhang Committed by Andreas Traczyk
Browse files

settingsadapter: ensure the state correctness for publishedSameAsLocal

Change-Id: I34b1386e81c0084aba8ddcc82c8480242e48ab41
parent 8bc49025
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ ColumnLayout {
property int itemWidth
function updatePublicAddressAccountInfos() {
checkBoxCustomAddressPort.checked = SettingsAdapter.getAccountConfig_PublishedSameAsLocal()
checkBoxCustomAddressPort.checked = !SettingsAdapter.getAccountConfig_PublishedSameAsLocal()
lineEditSIPCustomAddress.setText(SettingsAdapter.getAccountConfig_PublishedAddress())
customPortSIPSpinBox.setValue(SettingsAdapter.getAccountConfig_PublishedPort())
}
......@@ -65,7 +65,7 @@ ColumnLayout {
fontPointSize: JamiTheme.settingsFontSize
onSwitchToggled: {
SettingsAdapter.setUseCustomAddressAndPort(checked)
SettingsAdapter.setUseCustomAddressAndPort(!checked)
lineEditSIPCustomAddress.setEnabled(checked)
customPortSIPSpinBox.setEnabled(checked)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment