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

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
            Version|                            |6.7.0
  Fixed/Implemented|                            |
                 In|                            |
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-workspace/-/commi
                   |                            |t/d87b71f13945f249b4890e93f
                   |                            |520efb44b3ef17e

--- Comment #12 from Nate Graham <[email protected]> ---
Git commit d87b71f13945f249b4890e93f520efb44b3ef17e by Nate Graham, on behalf
of Sander Wolswijk.
Committed on 03/06/2026 at 17:32.
Pushed by ngraham into branch 'master'.

components/calendar: Fix infinite loop when clicking during animation

Setting `currentIndex` while interacting with a `ListView` does not actually
work. The resulted in `resetViewPosition` calling `positionViewAtIndex`
continuously with a wrong index (0 or 2). Which on its turn resulted in the
`onAtYBeginningChanged` or `onAtYEndChanged` slots being called again, which
then call `resetViewPosition` again. This would then keep going until the
shell is SIGKILL-ed.

The "RangeError: Maximum call stack size exceeded" from the bug report
happened for a similar reason. Once the calendar had been dragged far enough,
it would call `handleDateChange`, which calls `handleDrag`, which then calls
`resetViewPosition`. This would also call `positionViewAtIndex` with the
wrong index and call the slots again, which keeps going until the stack
overflows.

Simply always calling `positionViewAtIndex` with index 1 prevents these loops
from happening, without changing any functionality.
FIXED-IN: 6.7.0

M  +1    -1    components/calendar/qml/InfiniteList.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/d87b71f13945f249b4890e93f520efb44b3ef17e

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

Reply via email to