Skip to content
Commit 89f68cec authored by Fushan Wen's avatar Fushan Wen
Browse files

libkmpris: find active player index in filter proxy model

When the filter proxy model emits rowsRemoved, the player is still
not erased from m_container, so when the active player is the **last**
player in m_container, m_filterModel->mapFromSource(sourceModel->index(sourceRow, 0))
will return an invalid index because the source index becomes
stale (source_index.row() >= m->proxy_rows.size()) in the filter model.

BUG: 481992
FIXED-IN: 6.0


(cherry picked from commit 2f809bd7)
parent b7412860
Pipeline #620099 passed with stage
in 12 minutes and 43 seconds
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