diff options
| author | David Faure <david.faure@kdab.com> | 2025-09-15 20:13:23 +0200 |
|---|---|---|
| committer | David Faure <david.faure@kdab.com> | 2025-09-16 14:52:30 +0200 |
| commit | a346f6d0f3a26b134060b8d3f9e008a8e08353b9 (patch) | |
| tree | 0b3d2ad5dfc92481d08d382ac79cc9c570c7e637 /src/qmlworkerscript/qquickworkerscript.cpp | |
| parent | 5ab3da9daf5599bc80e282d9193cd6c9a3495cb3 (diff) | |
QQuickWindow: disconnect incoming signals in dtor to avoid assert
qtbase commit 92a65fdac69d7773b114584f1637946622cf4f72 changed what
happened when deleting a QWindow with child windows: they are now
deleted earlier, from ~QWindow rather than from ~QObject.
As a consequence, if the deletion of the child window triggers any
signal (such as QSGRenderContext::invalidated), the parent window
now receives it (while before, the code in ~QObject would disconnect
the parent window from all senders).
Fixed by explicit disconnects, using a std::array of
QMetaObject::Connections, like in QSortFilterProxyModel for instance.
Task-number: QTBUG-140170
Pick-to: 6.10 6.10.0
Change-Id: Id2c402d3121c8a3e6962cfed0afe1e90f5f14b3f
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/qmlworkerscript/qquickworkerscript.cpp')
0 files changed, 0 insertions, 0 deletions
