summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_sql_kernel_qsqlresult.cpp
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2010-07-09 14:28:18 (GMT)
committerToby Tomkins <toby.tomkins@nokia.com>2010-07-15 03:22:31 (GMT)
commitdd529528112f174f12ebe39903ad15655d0fcf90 (patch)
tree59cdb0c66d91eb6744ce0a41530e625170deb616 /doc/src/snippets/code/src_sql_kernel_qsqlresult.cpp
parent855bc9b8e446982ab04fe4c4073b7c66821110be (diff)
downloadQt-dd529528112f174f12ebe39903ad15655d0fcf90.zip
Qt-dd529528112f174f12ebe39903ad15655d0fcf90.tar.gz
Qt-dd529528112f174f12ebe39903ad15655d0fcf90.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> (cherry picked from commit 7d09f690d5b4c56699092444665d1879deb86a6e)
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqlresult.cpp')
0 files changed, 0 insertions, 0 deletions