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

            Bug ID: 456214
           Summary: Sidebar ListView reloads and shows hidden section
                    header
           Product: Elisa
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: matthieu_gall...@yahoo.fr
          Reporter: yer...@protonmail.com
  Target Milestone: ---

Created attachment 150327
  --> https://bugs.kde.org/attachment.cgi?id=150327&action=edit
Preview of the bug

SUMMARY

At the beginning of the sidebar there is a ListSectionHeader called "default"
which is inside of a ListView in a ScrollView located at qml/ViewSelector.qml.
The header is correctly hidden by the Loader at the beginning by 'active:
section !== "default' check, and other section headers are visible correctly.
However if you scroll far away from the element, and back to it, the header is
recreated as an empty slot in the ListView incorrectly. I believe delegates can
remove and recreate objects as they please, and at some point it is recreated
when it is not supposed to.

I was looking into this and I do not believe it to be a Loader issue, as the
ListView items would appear to lose their properties even without the Loader.
Not sure if this is Elisa, Kirigami or Qt issue.


STEPS TO REPRODUCE
1. Enable one of the embedded categories in configuration to get a longer list
to your sidebar.
2. Scroll all the way to the bottom and click an object, then scroll all the
way back up.
3. You should see an empty slot where the "default" ListSectionHeader is
located at.

OBSERVED RESULT
Empty slot where "default" ListSectionHeader is located at.

EXPECTED RESULT
"default" ListSectionHeader is supposed to be hidden and not reloaded.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

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

Reply via email to