fix crash
This commit is contained in:
parent
9fbc6f5bbf
commit
9e74b24be6
2 changed files with 5 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ ListView {
|
||||||
signal transferCallToAnotherRequested(CallGui dest)
|
signal transferCallToAnotherRequested(CallGui dest)
|
||||||
|
|
||||||
property bool isTransferList: false
|
property bool isTransferList: false
|
||||||
|
property string currentRemoteAddress: callProxy.currentCall ? callProxy.currentCall.core.remoteAddress : ""
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
id: callDelegate
|
id: callDelegate
|
||||||
|
|
@ -60,7 +61,7 @@ ListView {
|
||||||
id: transferButton
|
id: transferButton
|
||||||
Layout.preferredWidth: 24 * DefaultStyle.dp
|
Layout.preferredWidth: 24 * DefaultStyle.dp
|
||||||
Layout.preferredHeight: 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: {
|
onClicked: {
|
||||||
mainItem.transferCallToAnotherRequested(modelData)
|
mainItem.transferCallToAnotherRequested(modelData)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -625,6 +625,7 @@ AbstractWindow {
|
||||||
id: newCallPanel
|
id: newCallPanel
|
||||||
NewCallForm {
|
NewCallForm {
|
||||||
id: newCallForm
|
id: newCallForm
|
||||||
|
objectName: "newCallPanel"
|
||||||
Control.StackView.onActivated: rightPanel.headerTitleText = qsTr("Nouvel appel")
|
Control.StackView.onActivated: rightPanel.headerTitleText = qsTr("Nouvel appel")
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.topMargin: 21 * DefaultStyle.dp
|
anchors.topMargin: 21 * DefaultStyle.dp
|
||||||
|
|
@ -635,7 +636,7 @@ AbstractWindow {
|
||||||
searchBarBorderColor: DefaultStyle.grey_200
|
searchBarBorderColor: DefaultStyle.grey_200
|
||||||
numPadPopup: numericPad
|
numPadPopup: numericPad
|
||||||
onContactClicked: (contact) => {
|
onContactClicked: (contact) => {
|
||||||
startCallWithContact(contact, false, rightPanel)
|
mainWindow.startCallWithContact(contact, false, rightPanel)
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -1419,6 +1420,7 @@ AbstractWindow {
|
||||||
Layout.preferredHeight: 55 * DefaultStyle.dp
|
Layout.preferredHeight: 55 * DefaultStyle.dp
|
||||||
icon.width: 32 * DefaultStyle.dp
|
icon.width: 32 * DefaultStyle.dp
|
||||||
icon.height: 32 * DefaultStyle.dp
|
icon.height: 32 * DefaultStyle.dp
|
||||||
|
checked: rightPanel.visible && rightPanel.currentItem.objectName === "newCallPanel"
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
rightPanel.visible = true
|
rightPanel.visible = true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue