fix auto fill address field when creating contact from call page

fix missing from #LINQT-1605
This commit is contained in:
Gaelle Braud 2025-02-03 10:15:23 +01:00 committed by Gaëlle Braud
parent d2ddf01144
commit 5283a7c250
2 changed files with 6 additions and 5 deletions

View file

@ -132,12 +132,14 @@ AbstractSettingsLayout {
id: audioCodecsComponent
ColumnLayout {
spacing: 20 * DefaultStyle.dp
Repeater {
ListView {
Layout.preferredHeight: contentHeight
Layout.fillWidth: true
model: PayloadTypeProxy {
filterType: PayloadTypeProxy.Audio | PayloadTypeProxy.NotDownloadable
}
SwitchSetting {
Layout.fillWidth: true
delegate: SwitchSetting {
width: parent.width
titleText: Utils.capitalizeFirstLetter(modelData.core.mimeType)
subTitleText: modelData.core.clockRate + " Hz"
propertyName: "enabled"

View file

@ -56,8 +56,7 @@ AbstractMainPage {
}', mainItem)
friendGui.core.givenName = UtilsCpp.getGivenNameFromFullName(name)
friendGui.core.familyName = UtilsCpp.getFamilyNameFromFullName(name)
friendGui.core.defaultAddress = address
friendGui.core.defaultFullAddress = address
friendGui.core.appendAddress(address)
if (!rightPanelStackView.currentItem || rightPanelStackView.currentItem.objectName != "contactEdition")
rightPanelStackView.push(contactEdition, {"contact": friendGui, "title": qsTr("Nouveau contact"), "saveButtonText": qsTr("Créer")})
}