diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2010-07-09 14:28:18 (GMT) |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2010-07-13 10:44:21 (GMT) |
commit | 7d09f690d5b4c56699092444665d1879deb86a6e (patch) | |
tree | 126eb0831e5662a1b3290a300f8f810916aa8a7a /src/opengl/qgl_x11egl.cpp | |
parent | ee3ad7e774a959454eb3c367b40a8a4bdfab45bc (diff) | |
download | Qt-7d09f690d5b4c56699092444665d1879deb86a6e.zip Qt-7d09f690d5b4c56699092444665d1879deb86a6e.tar.gz Qt-7d09f690d5b4c56699092444665d1879deb86a6e.tar.bz2 |
Fixes crash in QGraphicsScene::addItem().
Crashed because tabFocusFirst could end up being a dangling pointer when
removing an item from the scene before deleting it.
When setting tabFocusFirst in fixFocusChainBeforeReparenting, we now
check that the item is in the scene. If it is not, tabFocusFirst is set
to 0.
Autotest included.
Task-number: QTBUG-12056
Reviewed-by: Alexis Ménard <alexis.menard@nokia.com>
Diffstat (limited to 'src/opengl/qgl_x11egl.cpp')
0 files changed, 0 insertions, 0 deletions