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

--- Comment #11 from Andrei Rybak <rybak....@gmail.com> ---
> I don't know a lot of C++, so I can't really help with code analysis here.

Never mind, I sold myself a little short here. I've found the problem. Method
`KFilePlacesModel::closestItem` doesn't return the hidden entries:

https://invent.kde.org/frameworks/kio/-/blob/v5.108.0/src/filewidgets/kfileplacesmodel.cpp#L733

    [...]
    for (int row = 0; row < d->items.size(); ++row) {
        KFilePlacesItem *item = d->items[row];

        if (item->isHidden() || isGroupHidden(item->groupType())) {
            continue;
        }
    [...]
    }

I confirmed it by

1. Disable checkbox "Hide section 'Devices'"
2. Repeat steps 2-4 in https://bugs.kde.org/show_bug.cgi?id=461872#c6

I found a problem in the related ticket
https://bugs.kde.org/show_bug.cgi?id=466416 -- the steps to reproduce there
aren't precise enough. Step 3 is "3. Unhide the section "Devices" in the
"Places" panel.", but on the video recording attached to that ticket checkbox
"Hide section 'Devices'" is enabled and I am using checkbox "Show All Entries"
to make the overflowing section 'Devices' visible.

== Notes ==
All links to tag v5.108.0 in the frameworks/kio repository, because that's the
version of KDE Frameworks I'm currently using.

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

Reply via email to