HomePhabricator

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

Description

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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D17978

Details

Provenance
FabienAuthored on Wed, Apr 23, 10:24
FabienPushed on Wed, Apr 23, 14:00
Reviewer
Restricted Project
Differential Revision
D17978: qt: Call setParent() in the parent's context
Parents
rABC02749df2f926: assumeUTXO: fix peers disconnection during sync
Branches
Unknown
Tags
Unknown