diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2022-11-29 08:22:01 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-11-29 09:42:06 +0100 |
| commit | 5595809245cfedeb86657277b8354f45ddda2528 (patch) | |
| tree | b9565d428fd548bfc3c32eba7273d0c3304981de /src/qmlworkerscript/qquickworkerscript.cpp | |
| parent | 6656567a4085e3d6de01226fb7b1ec16ee7ba08c (diff) | |
QQmlNotifier: Guard against broken meta objects when disconnecting
Some classes may be unable to produce a metaObject via the string
casting method we employ when invalidating the interceptor metaObject.
Ignore those.
Furthermore, qt_metacast() may produce a different object than the one
we called it on. Accept that. Finally, we don't have to check the
topmost QMetaObject because we already know it's invalid.
Fixes: QTBUG-108906
Change-Id: Id935d06beead4239381093f2f090d4a6a244034b
Reviewed-by: Zoltan Gera <zoltan.gera@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlworkerscript/qquickworkerscript.cpp')
0 files changed, 0 insertions, 0 deletions
