Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 5.9.3, 5.10.0
-
Fix Version/s: 5.9.5
-
Component/s: Quick: Core Declarative QML
-
Labels:None
-
Commits:0e64bd96fbf26855a65e38847083dbd2c6bee4ac
Description
Sometimes we get to crashes if the objects item is passed back to C++.
Something like would crash as forwardTo will have stored dangling pointers when the ListView decides to clear delegates in some occasions.
ListView { header: TextField { id: filter } model: SomeModel { filter: filter.text } Keys.forwardTo: [currentItem] }
Related bug reports in our bugzilla:
https://bugs.kde.org/show_bug.cgi?id=381814
https://bugs.kde.org/show_bug.cgi?id=389168
(and duplicates)
It always refers to this forwardTo sending events to objects that don't exist anymore.
Patch follows.