mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 13:48:08 +00:00
fix(ui/modules/Linphone/Calls/Calls): use callModel instead of call in running callback
This commit is contained in:
parent
7d0384ac94
commit
57be13cf34
2 changed files with 4 additions and 3 deletions
|
|
@ -139,7 +139,8 @@ function handleRowsInserted (_, first, last) {
|
|||
}
|
||||
}
|
||||
|
||||
if (index === 0 && model.rowsCount() === 1) {
|
||||
// First received call.
|
||||
if (first === 0 && model.rowCount() === 1) {
|
||||
resetSelectedCall()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ ListView {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
readonly property var selectedCall: _selectedCall
|
||||
readonly property var selectedCall: calls._selectedCall
|
||||
|
||||
property var _selectedCall
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ ListView {
|
|||
Connections {
|
||||
target: model
|
||||
|
||||
onCallRunning: Logic.handleCallRunning(index, call)
|
||||
onCallRunning: Logic.handleCallRunning(index, callModel)
|
||||
onRowsAboutToBeRemoved: Logic.handleRowsAboutToBeRemoved(parent, first, last)
|
||||
onRowsInserted: Logic.handleRowsInserted(parent, first, last)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue