diff --git a/linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml b/linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml index 5b54f27ec..ad34e4acb 100644 --- a/linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml +++ b/linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml @@ -44,7 +44,14 @@ TabContainer { Binding { property: 'selectedButton' target: encryption - value: SettingsModel.mediaEncryption + value: { + var toFound = SettingsModel.mediaEncryption + return Number( + Utils.findIndex(encryption.encryptions, function (value) { + return toFound === value[0] + }) + ) + } } } } @@ -121,7 +128,14 @@ TabContainer { Binding { property: 'selectedButton' target: lime - value: SettingsModel.limeState + value: { + var toFound = SettingsModel.limeState + return Number( + Utils.findIndex(lime.limeStates, function (value) { + return toFound === value[0] + }) + ) + } } } }