mirror of https://github.com/qt/qtbase.git
This commit addresses a crash that occurs when the parent window is destroyed while the view reference is still held. The crash happens when the callback onAttachedToWindow is triggered and the QuickView.createQuickView() function is called in native code. In this scenario, the view reference is still pointing to the previous QuickView whose parent has already been cleared, causing the crash. To fix this, we reset the reference to 0 when the parent is deleted or destroyed. This ensures that when onAttachedToWindow is called again, the view is properly recreated after its underlying window has been destroyed. Fixes: QTBUG-138922 Change-Id: Ia39eb83b58af19cd9b881915215b2be2adcfee49 (cherry picked from commit 8194e979fc58f71244f625f320a797d4550524c9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit |
||
---|---|---|
.github/workflows | ||
LICENSES | ||
bin | ||
cmake | ||
coin | ||
config.tests | ||
dist | ||
doc | ||
examples | ||
lib | ||
libexec | ||
mkspecs | ||
qmake | ||
src | ||
tests | ||
util | ||
.cmake.conf | ||
.gitattributes | ||
.gitignore | ||
.gitreview | ||
.lgtm.yml | ||
.tag | ||
CMakeLists.txt | ||
REUSE.toml | ||
config_help.txt | ||
configure | ||
configure.bat | ||
configure.cmake | ||
dependencies.yaml | ||
licenseRule.json | ||
qt_cmdline.cmake |