Commit 57be13cf authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/modules/Linphone/Calls/Calls): use `callModel` instead of `call` in running callback

parent 7d0384ac
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment