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

--- Comment #6 from chocolateimage <chocolateim...@protonmail.com> ---
I am on linux mint (may cause old packages) and in the appimage version it also
does not work. I found a fix for this issue:

in src/abstractmodel/abstracttreemodel.cpp
change function "int AbstractTreeModel::rowCount(const QModelIndex &parent)
const" to this:

int AbstractTreeModel::rowCount(const QModelIndex &parent) const
{
    if (parent.column() > 0) return 0;

    std::shared_ptr<TreeItem> parentItem;
    if (!parent.isValid())
        parentItem = rootItem;
    else {
        int parent_internalId = int(parent.internalId());
        if (m_allItems.count(parent_internalId) == 0) {
            return 0;
        }
        parentItem = getItemById(parent_internalId);
        if (parentItem == nullptr) {
            return 0;
        }
    }

    return parentItem->childCount();
}

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

Reply via email to