fix recursion crash when calling setStyleSheet with qproperty-styleSheet
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 3 Dec 2022 17:38:46 +0000 (17:38 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 3 Dec 2022 17:38:46 +0000 (17:38 +0000)
commit5652074cfec67c59c3dd2a97ae8099505abb8efa
tree77f34fe9f3326e27f535fd9aca9cde84a1a3e730
parentddc8b3b938e1f07f302bdd8bea10a210f7da6990
fix recursion crash when calling setStyleSheet with qproperty-styleSheet

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9cdcc7cb314586a
Last-Update: 2021-11-13

When calling setStyleSheet with property qproperty-styleSheet,
QStyleSheetStyle::polish will call QStyleSheetStyle::setProperties,
and then QStyleSheetStyle::setProperties goes on to call setProperty.
Because there is property qproperty-styleSheet, it will update
stylesheet by calling QStyleSheetStyle::polish.
This causes the recursive call to crash.

Gbp-Pq: Name fix_recursion_crash.diff
src/widgets/styles/qstylesheetstyle.cpp
tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp