Page MenuHomePhabricator

qt: Call setParent() in the parent's context
ClosedPublic

Authored by Fabien on Wed, Apr 23, 10:46.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCa15e4d48be9a: qt: Call setParent() in the parent's context
Summary
The setParent(parent) internally calls QCoreApplication::sendEvent(parent, QChildEvent) that implies running in the thread which created the parent object. That is not the case always, and an internal assertion fails in the debug mode.

Backport of core#18948.
with changes from core-gui#587

Test Plan
ninja all check-all

Event Timeline

Fabien requested review of this revision.Wed, Apr 23, 10:46
PiRK edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Wed, Apr 23, 11:35
This revision was automatically updated to reflect the committed changes.