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

This commit is contained in:
Ronan Abhamon 2017-05-09 17:25:08 +02:00
parent 7d0384ac94
commit 57be13cf34
2 changed files with 4 additions and 3 deletions

View file

@ -139,7 +139,8 @@ function handleRowsInserted (_, first, last) {
}
}
if (index === 0 && model.rowsCount() === 1) {
// First received call.
if (first === 0 && model.rowCount() === 1) {
resetSelectedCall()
}
}

View file

@ -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)
}