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

            Bug ID: 528622
           Summary: Atspi.Accessible.get_child_at_index() sometimes
                    returns the wrong child
    Classification: Applications
           Product: dolphin
      Version First 26.08.2
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 198301
  --> https://bugs.kde.org/attachment.cgi?id=198301&action=edit
dolphin-child-indices.py

SETUP
1. Create a folder with five items "a.txt" through "e.txt"
2. Switch to details view
3. Sort by name, ascending so "a.txt" is the file at index 0 and "e.txt" the
file at index 4

STEPS TO REPRODUCE
1. IMPORTANT: Quit Dolphin if you already ran the python reproducer
2. Launch Dolphin to the view created in SETUP
3. Launch dolphin-child-indices.py in a terminal
4. Return focus to Dolphin and click/arrow-to one of the .txt files
5. Repeat steps 3 and 4

OBSERVED RESULT

Initially, "c.txt" is the reported child at index 2 and at index 3:

$ python dolphin-child-indices.py  ***** Initial run *****
Change the selection to dump and exit.
Querying children 2, 1, and 3:
Child 2: 'c.txt'
Child 1: 'b.txt'
Child 3: 'c.txt'     ***** WRONG: Should be 'd.txt' *****
Querying all children in order:
Child 0: 'a.txt'
Child 1: 'b.txt'
Child 2: 'c.txt'
Child 3: 'd.txt'     ***** FIXED by side effect of getting children in
order(??) *****
Child 4: 'e.txt'

$ python dolphin-child-indices.py  ***** This is the re-run *****
Change the selection to dump and exit.
Querying children 2, 1, and 3:
Child 2: 'c.txt'
Child 1: 'b.txt'
Child 3: 'd.txt'       ***** FIXED because the children are cached from
before(??) *****
[...]

EXPECTED RESULT
The child at index 3 would always be "d.txt" no matter what order children were
obtained.

SOFTWARE/OS VERSIONS
Dolphin: 26.08.2
KDE Frameworks: 6.31.0
Qt: Using 6.11.2 and built against 6.11.2
Fedora Linux 45 (Workstation Edition) (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 7.2.11-300.fc45.x86_64

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

Reply via email to