fix crash

This commit is contained in:
Gaelle Braud 2024-10-21 15:53:17 +02:00
parent 9fbc6f5bbf
commit 9e74b24be6
2 changed files with 5 additions and 2 deletions

View file

@ -19,6 +19,7 @@ ListView {
signal transferCallToAnotherRequested(CallGui dest)
property bool isTransferList: false
property string currentRemoteAddress: callProxy.currentCall ? callProxy.currentCall.core.remoteAddress : ""
delegate: Item {
id: callDelegate
@ -60,7 +61,7 @@ ListView {
id: transferButton
Layout.preferredWidth: 24 * DefaultStyle.dp
Layout.preferredHeight: 24 * DefaultStyle.dp
visible: mainItem.isTransferList && callProxy?.currentCall.core.remoteAddress !== modelData.core.remoteAddress
visible: mainItem.isTransferList && mainItem.currentRemoteAddress !== modelData.core.remoteAddress
onClicked: {
mainItem.transferCallToAnotherRequested(modelData)
}

View file

@ -625,6 +625,7 @@ AbstractWindow {
id: newCallPanel
NewCallForm {
id: newCallForm
objectName: "newCallPanel"
Control.StackView.onActivated: rightPanel.headerTitleText = qsTr("Nouvel appel")
anchors.fill: parent
anchors.topMargin: 21 * DefaultStyle.dp
@ -635,7 +636,7 @@ AbstractWindow {
searchBarBorderColor: DefaultStyle.grey_200
numPadPopup: numericPad
onContactClicked: (contact) => {
startCallWithContact(contact, false, rightPanel)
mainWindow.startCallWithContact(contact, false, rightPanel)
}
Item {
@ -1419,6 +1420,7 @@ AbstractWindow {
Layout.preferredHeight: 55 * DefaultStyle.dp
icon.width: 32 * DefaultStyle.dp
icon.height: 32 * DefaultStyle.dp
checked: rightPanel.visible && rightPanel.currentItem.objectName === "newCallPanel"
onCheckedChanged: {
if (checked) {
rightPanel.visible = true