diff --git a/Linphone/view/Control/Display/Call/CallListView.qml b/Linphone/view/Control/Display/Call/CallListView.qml index efeffad5..916a671b 100644 --- a/Linphone/view/Control/Display/Call/CallListView.qml +++ b/Linphone/view/Control/Display/Call/CallListView.qml @@ -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) } diff --git a/Linphone/view/Page/Window/Call/CallsWindow.qml b/Linphone/view/Page/Window/Call/CallsWindow.qml index 4b3a99d7..f50b3df0 100644 --- a/Linphone/view/Page/Window/Call/CallsWindow.qml +++ b/Linphone/view/Page/Window/Call/CallsWindow.qml @@ -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