Skip to content
Commit b0c4bc1c authored by David Edmundson's avatar David Edmundson
Browse files

Don't alter Item in code called from Item's destructor

QQuickItem::~QQuickItem calls setParentItem(null) before closing

This emits itemChange with ItemRemoved on the column view for that item

We then call ContentItem::forgetItem

And adjust the visibility.

This is problematic as we then start emitting all sorts of things after
our item is being destroyed. Objects monitoring, in this case the
attached accessiblity object can then do something that crash.

The only other caller of forgetItem is the removeItem method, so the
setVisible call is moved there.

Tested by setting up orca
Reproducing crash
Testing fix

BUG: 428481
parent 0bf810e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment