aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates/qquickscrollbar_p_p.h
diff options
context:
space:
mode:
authorDenis Letov <den.letoff@gmail.com>2026-09-29 20:28:01 +0300
committerDenis Letov <den.letoff@gmail.com>2026-09-30 16:03:57 +0000
commit549ecd1eee8d9c48dfccf6f5404ec1c4b0175f08 (patch)
tree939ea8c496b13297bc42b30eb4ffb328dc47abd5 /src/quicktemplates/qquickscrollbar_p_p.h
parent2fba5e4ba8b4c54c244500dcd880d98817be4f2c (diff)
Quick: Fix crash when a section item outlives its context
A ListView section item can outlive its creation context, for example when the model is reset while the view is being laid out, or when the view is being torn down while a contentY animation is still running. The next call to setSectionHelper() then dereferences a null QQmlContext: QQmlContextData::get(nullptr) reads QQmlContextPrivate at offset 8, which crashes with an access violation. Skip the update when the context is null The section may keep its outdated label until it is released and a new section item is created with a valid context Fixes: QTBUG-130819 Pick-to: 6.8 6.12 Change-Id: I8be5b3073fdceda878014cf5c1cf136778691270 Reviewed-by: SanthoshKumar Selvaraj <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'src/quicktemplates/qquickscrollbar_p_p.h')
0 files changed, 0 insertions, 0 deletions