https://bugs.kde.org/show_bug.cgi?id=512321

--- Comment #1 from Jpn <[email protected]> ---
This appears to be a Qt bug. The method `selectedRows` in the selection model
of QTreeView returns an incomplete list, missing some selected items.
Replacing `selectedRows` by `selectedIndexes` solves the problem:
```c++
QModelIndexList Part::getSelectedIndexes()
{
    QModelIndexList list;

    auto selected = m_view->selectionModel()->selectedIndexes();
    for (const QModelIndex &index: selected) {
        if (index.column() == 0) {
            list.append(m_filterModel->mapToSource(index));
        }
    }
    return list;
}
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to