aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/support/generate_pyi.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-29 08:34:56 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-29 13:56:39 +0200
commit98aef951920641dcdf4c217a0c51626cdf82caf8 (patch)
tree285079d972d5c65e422f83454d80ec139b89e28d /sources/pyside6/PySide6/support/generate_pyi.py
parentba819888cad86b0cacb2a992f01287b476b29a04 (diff)
PySide6: Fix crashes in QObject.findChild()
For all objects encountered in findChild(), a wrapper was created just to be able to retrieve its type object and check against it. As there is a name lookup involved, it happens that non-QObject wrappers are created for this (in the specific case, an enum wrapper), which leads to crashes later on. Refactor the code, extracting a helper function to PySide which finds the best-matching type object for a QObject to check on that. Rearrange the check so that the name is checked first. Pick-to: 6.1 5.15 Fixes: PYSIDE-1609 Change-Id: I026854201f3f6eca9e5905105127f0a4b4588fa9 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/PySide6/support/generate_pyi.py')
0 files changed, 0 insertions, 0 deletions